Skip to content

Commit

Permalink
feature: Add support to pass in an authorization response to the acce…
Browse files Browse the repository at this point in the history
…ss token request. The authorization response can either be a JSON or URI
  • Loading branch information
nklomp committed Jan 25, 2024
1 parent 136ff2f commit 4ae9a7d
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 210 deletions.
4 changes: 2 additions & 2 deletions packages/client/lib/AuthorizationCodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export const createAuthorizationRequestUrl = async ({
console.log(`QUERY obj: ` + JSON.stringify(queryObj, null, 2));
const url = convertJsonToURI(queryObj, {
baseUrl: endpointMetadata.authorization_endpoint,
uriTypeProperties: ['client_id', 'request_uri', 'redirect_uri', 'scope', /*'authorization_details', */ 'issuer_state'],
arrayTypeProperties: ['authorization_details'],
uriTypeProperties: ['client_id', 'request_uri', 'redirect_uri', 'scope', 'authorization_details', 'issuer_state'],
// arrayTypeProperties: ['authorization_details'],
mode: JsonURIMode.X_FORM_WWW_URLENCODED,
// We do not add the version here, as this always needs to be form encoded
});
Expand Down
Loading

0 comments on commit 4ae9a7d

Please sign in to comment.