Class: Users::MediafluxCallbacksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Users::MediafluxCallbacksController
- Defined in:
- app/controllers/users/mediaflux_callbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#cas ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/users/mediaflux_callbacks_controller.rb', line 8 def cas ticket = params[:ticket] uri = URI.parse(session[:cas_validation_url]) token = "#{uri.query}#{ticket}" current_user.medaiflux_login(token, session) redirect_to(session["original_path"] || root_path) end |
#passthru ⇒ Object
3 4 5 6 |
# File 'app/controllers/users/mediaflux_callbacks_controller.rb', line 3 def passthru session[:original_path] = params["path"] redirect_to session[:cas_login_url], allow_other_host: true end |