Class: SMARTAppLaunch::AppRedirectTestSTU2

Inherits:
AppRedirectTest show all
Defined in:
lib/smart_app_launch/app_redirect_test_stu2.rb

Instance Method Summary collapse

Methods inherited from AppRedirectTest

#aud, calculate_s256_challenge, #wait_message

Instance Method Details

#authorization_url_builder(url, params) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/smart_app_launch/app_redirect_test_stu2.rb', line 35

def authorization_url_builder(url, params)
  return super if authorization_method == 'get'

  post_params = params.merge(auth_url: url)

  post_url = URI(config.options[:post_authorization_uri])
  post_url.query = URI.encode_www_form(post_params)
  post_url.to_s
end