Skip to content

[BUG]: When using JWTID (JTI) it gets set twice #9

@julianvv

Description

@julianvv

When using a JTI it gets set twice. This is due to the fact that it hasn't been added to the saBlacklistMembers (String[]) in EncodeJWTEx.
First it will check if a value has been set by calling this:

If (HasMember(hoJsonWebToken, 'jti')) Begin          
    Get MemberValue of hoJsonWebToken 'jti' to sJti
    Move (AddressOf(sJti)) to stl8w8jwt_encoding_params.jti
    Move (SizeOfString(sJti)) to stl8w8jwt_encoding_params.jti_length
End

And later on in the same function it gets added as a "custom" claim because it is not listed in the string array saBlacklistMembers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions