IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

User claims not present on access token

Open H-a-w-k opened this issue 5 years ago • 2 comments

Question

How come I get different access tokens when I use different grant types? Using password does not populate the access token with user claims.

I have a simple setup with Identity resources and api resources. Client accept password and authentication_code grant types. The api resources add some user claims.

When using my webapp client with authentication redirection, which uses oidc-client, I get an access token with user claims on it and all is joy. When I use postman with password, I do get an access token, but it does not contain userclaims. However, if I also create an ApiScope MyClaims and add some user claims to that, I am able to get the user claims in the access token by adding this scope.

H-a-w-k avatar Jun 08 '21 13:06 H-a-w-k

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

stale[bot] avatar Jun 18 '21 22:06 stale[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jul 08 '21 03:07 github-actions[bot]