Skip to content

Commit

Permalink
feat: Improve create jarm response callback to also include clientMet…
Browse files Browse the repository at this point in the history
…adata, to make it easier for implementers to extract the enc jwks themselves
  • Loading branch information
nklomp committed Oct 4, 2024
1 parent ee4b7d5 commit 2acc577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/siop-oid4vp/lib/op/OP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class OP {
createJarmResponse?: (opts: {
authorizationResponsePayload: AuthorizationResponsePayload
requestObjectPayload: RequestObjectPayload
clientMetadata: JwksMetadataParams
}) => Promise<{
response: string
}>,
Expand Down Expand Up @@ -231,6 +232,7 @@ export class OP {
const { response } = await createJarmResponse({
requestObjectPayload,
authorizationResponsePayload: payload,
clientMetadata: authorizationResponse.response.authorizationRequest.options.clientMetadata
})

return jarmAuthResponseSend({
Expand Down

0 comments on commit 2acc577

Please sign in to comment.