Class: Users::MediafluxCallbacksController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/users/mediaflux_callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#casObject



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.(token, session)
  redirect_to(session["original_path"] || root_path)
end

#passthruObject



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