Skip to content

Returning user claims like Name, Role etc... as part of token #249

Answered by simpleidserver
RadekVoltr asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

According to the OPENID RFC (https://openid.net/specs/openid-connect-core-1_0.html#UserInfo chapter 5.4) : "when a response_type value is used that results in an Access Token being issue then the claims requested by the "profile", "email", "address" and "phone" scope are returned from the UserInfo endpoint. However when no Access Token is issued, the resulting Claims are returned in the ID Token".

If the response_type parameter is different to "id_token" then claims are not present in the id_token.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RadekVoltr
Comment options

Answer selected by RadekVoltr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants