Class: SMARTAppLaunch::TokenExchangeSTU22Test

Inherits:
TokenExchangeSTU2Test show all
Defined in:
lib/smart_app_launch/token_exchange_stu2_2_test.rb

Instance Method Summary collapse

Methods inherited from TokenExchangeTest

#default_redirect_uri, #redirect_uri

Instance Method Details

#add_credentials_to_request(oauth2_params, oauth2_headers) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/smart_app_launch/token_exchange_stu2_2_test.rb', line 9

def add_credentials_to_request(oauth2_params, oauth2_headers)
  if smart_auth_info.public_auth?
    oauth2_params[:client_id] = smart_auth_info.client_id
    oauth2_headers['Origin'] = Inferno::Application['inferno_host']
  else
    super
  end
end