Class: SSOController

Inherits:
ApplicationController show all
Includes:
RedirectCheckingHelper
Defined in:
app/controllers/sso_controller.rb

Instance Method Summary collapse

Methods included from RedirectCheckingHelper

#check_redirect_to

Instance Method Details

#get_rsa_public_keyObject

GET the RSA public key


23
24
25
# File 'app/controllers/sso_controller.rb', line 23

def get_rsa_public_key
  render text: CoreRSAKeyService.public_key_string
end

#get_sstObject

GET the SST


18
19
20
# File 'app/controllers/sso_controller.rb', line 18

def get_sst
  render text: SignonStatusTokenService.generate(current_user)
end

#refresh_sstObject

Refresh the sign-on status token (sst) in cookie


5
6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/sso_controller.rb', line 5

def refresh_sst
  refresh_signon_status_token

  check_redirect_to

  if can_redirect
    redirect_to redirect_url
  else
    redirect_to root_path
  end
end