-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
Issue and Steps to Reproduce
@guillaume-chervet As per my server gateway, they need ath value divide by 2 in dpop jwt payload.
if possible, can we have a extra param something like makeAthHalfInJWT divide by 2 (half) in configuration itself like below.
From this code...
const configuration = this.configuration;
const claimsExtras = {ath: await base64urlOfHashOfASCIIEncodingAsync(accessToken),};
to...
const configuration = this.configuration;
const athValue= await base64urlOfHashOfASCIIEncodingAsync(accessToken);
const claimsExtras = {ath: configuration?.makeAthHalfInJWT ? athValue.slice(0, athValue.length / 2) : athValue ,};
If you want me to send custom ath value like below, i can send it as extra param to generateDemonstrationOfProofOfPossessionAsync method.
await oidc.generateDemonstrationOfProofOfPossessionAsync( accessToken, urlSplit[0], method, ath );
Thanks in Advance.
Versions
"@axa-fr/react-oidc": "^7.14.1"
Screenshots
Expected
Actual
Additional Details
- Installed packages:
Metadata
Metadata
Assignees
Labels
No labels