Class: Masq::InfoController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Masq::InfoController
- Defined in:
- app/controllers/masq/info_controller.rb
Instance Method Summary collapse
- #help ⇒ Object
-
#index ⇒ Object
The yadis discovery header tells incoming OpenID requests where to find the server endpoint.
-
#safe_login ⇒ Object
This page is to prevent phishing attacks.
Instance Method Details
#help ⇒ Object
20 21 |
# File 'app/controllers/masq/info_controller.rb', line 20 def help end |
#index ⇒ Object
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_login ⇒ Object
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 safe_login if !Masq::Engine.config.masq.include?("protect_phishing") or Masq::Engine.config.masq["protect_phishing"] render(layout: false) else redirect_to(login_url) end end |