Skip to content

Commit

Permalink
add missing kid input param
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanloyer committed Sep 29, 2023
1 parent 3e0ca3d commit da4e6e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
exp: 5.minutes.from_now,
jti: SecureRandom.hex(32),
kid:
kid: nil
)
@encryption_method = encryption_method
@scope = scope
Expand Down
8 changes: 6 additions & 2 deletions lib/onc_certification_g10_test_kit/bulk_data_authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ class BulkDataAuthorization < Inferno::TestGroup
}
input :bulk_jwks_kid,
title: 'Bulk Data JWKS kid',
description: 'The key ID of the JWKS private key to use for signing the client assertion when fetching an auth token. Defaults to the first JWK in the list if no kid is supplied.',
description: <<~DESCRIPTION,
The key ID of the JWKS private key to use for signing the client assertion when fetching an auth token.
Defaults to the first JWK in the list if no kid is supplied.
DESCRIPTION
optional: true
output :bearer_token

Expand Down Expand Up @@ -161,7 +164,8 @@ class BulkDataAuthorization < Inferno::TestGroup
scope: bulk_scope,
iss: 'not_a_valid_iss',
sub: bulk_client_id,
aud: bulk_token_endpoint)
aud: bulk_token_endpoint,
kid: bulk_jwks_kid)

post(**{ client: :token_endpoint }.merge(post_request_content))

Expand Down

0 comments on commit da4e6e7

Please sign in to comment.