Class: Masq::InfoController

Inherits:
BaseController show all
Defined in:
app/controllers/masq/info_controller.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



20
21
# File 'app/controllers/masq/info_controller.rb', line 20

def help
end

#indexObject

The yadis discovery header tells incoming OpenID requests where to find the server endpoint.



5
6
7
# File 'app/controllers/masq/info_controller.rb', line 5

def index
  response.headers["X-XRDS-Location"] = server_url(format: :xrds, protocol: scheme)
end

#safe_loginObject

This page is to prevent phishing attacks. It should not contain any links, the user has to navigate to the right login page manually.



12
13
14
15
16
17
18
# File 'app/controllers/masq/info_controller.rb', line 12

def 
  if !Masq::Engine.config.masq.include?("protect_phishing") or Masq::Engine.config.masq["protect_phishing"]
    render(layout: false)
  else
    redirect_to()
  end
end