Replies: 1 comment 2 replies
-
|
Hi @dairoca90,
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am testing stateless OAuth2 tokens in OpenAM/OpenIdentityPlatform and I have a question regarding custom claims in JWT access tokens.
After enabling:
Use Stateless Access & Refresh Tokensin the OAuth2 Provider configuration, the generated access token is correctly returned as a signed JWT.
However, I noticed that claims added through:
are not embedded directly inside the generated stateless JWT access token.
For example, the generated
id_tokencorrectly contains custom claims such as:{ "sub": "demo", "some": "value", "acr": "ldap" }But the generated
access_tokenJWT only contains standard fields:{ "sub": "demo", "scope": "some openid", "aud": "sdkPublicClient", "exp": 1779584967 }Even though the same authentication flow was used, the access token does not include:
acramrsomeThe custom claims do appear correctly when using:
/oauth2/tokeninfo/oauth2/userinfowhich makes me think the scripting is working correctly, but only for:
and not for stateless JWT access tokens themselves.
My main goal is to allow downstream APIs, gateways, and policy enforcement points to:
acr,amr)/tokeninfoor/userinfoon every requestIdeally, I would like the generated access token to contain claims such as:
{ "acr": "iot", "amr": ["pwd", "otp"] }I already tested:
acr_valuesduring authorization requestsbut the claims still do not appear inside the stateless JWT access token payload.
So my questions are:
Any guidance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions