Class: GDS::SSO::FailureApp
- Inherits:
-
ActionController::Metal
- Object
- ActionController::Metal
- GDS::SSO::FailureApp
- Includes:
- ActionController::HttpAuthentication::Basic::ControllerMethods, ActionController::RackDelegation, ActionController::Redirecting, ActionController::UrlFor
- Defined in:
- lib/gds-sso/failure_app.rb
Class Method Summary collapse
Instance Method Summary collapse
- #redirect ⇒ Object
-
#store_location! ⇒ Object
TOTALLY NOT DOING THE SCOPE THING.
Class Method Details
Instance Method Details
#redirect ⇒ Object
21 22 23 24 |
# File 'lib/gds-sso/failure_app.rb', line 21 def redirect store_location! redirect_to '/auth/gds' end |
#store_location! ⇒ Object
TOTALLY NOT DOING THE SCOPE THING. PROBABLY SHOULD.
32 33 34 |
# File 'lib/gds-sso/failure_app.rb', line 32 def store_location! session["return_to"] = env['warden.options'][:attempted_path] if request.get? end |