Class: SMARTAppLaunch::TokenExchangeSTU2Test
- Inherits:
-
TokenExchangeTest
- Object
- Inferno::Test
- TokenExchangeTest
- SMARTAppLaunch::TokenExchangeSTU2Test
- Defined in:
- lib/smart_app_launch/token_exchange_stu2_test.rb
Direct Known Subclasses
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
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/smart_app_launch/token_exchange_stu2_test.rb', line 16 def add_credentials_to_request(oauth2_params, oauth2_headers) if smart_auth_info.asymmetric_auth? oauth2_params.merge!( client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', client_assertion: ClientAssertionBuilder.build( iss: smart_auth_info.client_id, sub: smart_auth_info.client_id, aud: smart_auth_info.token_url, client_auth_encryption_method: smart_auth_info.encryption_algorithm, custom_jwks: smart_auth_info.jwks ) ) else super end end |