Class: SMARTAppLaunch::AppRedirectTestSTU2
Instance Method Summary
collapse
#aud, calculate_s256_challenge, #default_redirect_uri, #redirect_uri, #wait_message
Instance Method Details
#authorization_url_builder(url, params) ⇒ Object
28
29
30
31
32
33
34
35
36
|
# File 'lib/smart_app_launch/app_redirect_test_stu2.rb', line 28
def authorization_url_builder(url, params)
return super if smart_auth_info.get_auth_request?
post_params = params.merge(auth_url: url)
post_url = URI(post_authorization_uri)
post_url.query = URI.encode_www_form(post_params)
post_url.to_s
end
|
#default_post_authorization_uri ⇒ Object
20
21
22
|
# File 'lib/smart_app_launch/app_redirect_test_stu2.rb', line 20
def default_post_authorization_uri
"#{Inferno::Application['base_url']}/custom/smart_stu2/post_auth"
end
|
#post_authorization_uri ⇒ Object
24
25
26
|
# File 'lib/smart_app_launch/app_redirect_test_stu2.rb', line 24
def post_authorization_uri
config.options[:post_authorization_uri].presence || default_post_authorization_uri
end
|