Skip to content

Consider adding jti claim in JWT #1360

@jasmine0508

Description

@jasmine0508

Describe the bug
JTI claim missing in generated JWT access token

To Reproduce
Generate JWT access token using client_Credentials grant type

Expected behavior
A jwt token with following default claims:
{
"sub": "testClientAK2",
"aud": "testClientAK2",
"nbf": 1694598773,
"scope": [""],
"iss": "http://localhost:9000",
"exp": 1694599773,
"iat": 1694598773,
"jti": xxx
}

Sample

My current JWT token has the following:
{
"sub": "testClientAK2",
"aud": "testClientAK2",
"nbf": 1694598773,
"scope": [""],
"iss": "http://localhost:9000",
"exp": 1694599773,
"iat": 1694598773,
}

I would like to ask how to set the jti claim(by default) in the access token.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions