Sha256: 731f0a27d08c4919ea39225e07e9ad2edb22e9249a3ae0e2e8c8dc952f258562

Contents?: true

Size: 1.79 KB

Versions: 7

Compression:

Stored size: 1.79 KB

Contents

require_relative 'token_refresh_stu2_test'
require_relative 'token_refresh_body_test'
require_relative 'token_response_headers_test'

module SMARTAppLaunch
  class TokenRefreshSTU2Group < Inferno::TestGroup
    id :smart_token_refresh_stu2
    title 'SMART Token Refresh'
    short_description 'Demonstrate the ability to exchange a refresh token for an access token.'
    description %(
      # Background

      The #{title} Sequence tests the ability of the system to successfully
      exchange a refresh token for an access token. Refresh tokens are typically
      longer lived than access tokens and allow client applications to obtain a
      new access token Refresh tokens themselves cannot provide access to
      resources on the server.

      Token refreshes are accomplished through a `POST` request to the token
      exchange endpoint as described in the [SMART App Launch
      Framework](https://www.hl7.org/fhir/smart-app-launch/1.0.0/index.html#step-5-later-app-uses-a-refresh-token-to-obtain-a-new-access-token).

      # Test Methodology

      This test attempts to exchange the refresh token for a new access token
      and verify that the information returned contains the required fields and
      uses the proper headers.

      For more information see:

      * [The OAuth 2.0 Authorization
        Framework](https://tools.ietf.org/html/rfc6749)
      * [Using a refresh token to obtain a new access
        token](https://www.hl7.org/fhir/smart-app-launch/1.0.0/index.html#step-5-later-app-uses-a-refresh-token-to-obtain-a-new-access-token)
    )

    test from: :smart_token_refresh_stu2
    test from: :smart_token_refresh_body
    test from: :smart_token_response_headers,
         config: {
           requests: {
             token: { name: :token_refresh }
           }
         }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smart_app_launch_test_kit-0.6.0 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.5.1 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.5.0 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.4.6 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.4.5 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.4.4 lib/smart_app_launch/token_refresh_stu2_group.rb
smart_app_launch_test_kit-0.4.3 lib/smart_app_launch/token_refresh_stu2_group.rb