8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/maitre_d/api/sso.rb', line 8
def call
hash = listener.single_sign_on params['resource_id']
hash[:session] ||= {}
hash[:session].each { |key, value| session[key] = value }
if environment['action_dispatch.cookies']
environment['action_dispatch.cookies']['heroku-nav-data'] =
params['nav-data']
else
Rack::Utils. response., 'heroku-nav-data',
:value => params['nav-data']
end
response.status = 302
response.body = ["Redirect to #{hash[:uri]}"]
response. ||= {}
response.['Location'] = hash[:uri]
end
|