这是indexloc提供的服务,不要输入任何密码
Skip to content

Need to modify ath value in dpop payload #1322

@bhargavmullakuru

Description

@bhargavmullakuru

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

image
image

Expected

Actual

Additional Details

  • Installed packages:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions