Class: Ssomg::AuthController

Inherits:
RootController show all
Defined in:
lib/ssomg/controllers/auth_controller.rb

Instance Method Summary collapse

Instance Method Details

#loginObject



7
8
9
10
# File 'lib/ssomg/controllers/auth_controller.rb', line 7

def 
  cookies["ssomg_meta" ] = { :value => "/", :secure => Rails.env.production?, :httponly => true }
  go_to_provider
end

#logoutObject



12
13
14
15
16
# File 'lib/ssomg/controllers/auth_controller.rb', line 12

def logout
  clear_linked_cookies
  clear_cookies
  redirect_to ENV["SSO_HOST"] + "/auth/logout" and return
end

#verifyObject



3
4
5
# File 'lib/ssomg/controllers/auth_controller.rb', line 3

def verify
  verify_token    
end