Skip to content

Wrong ApiResource selected for reference token; token refused #173

Closed Answered by RolandGuijt
paulguz-datapa asked this question in IdentityServer
Discussion options

You must be logged in to vote

Just to make sure: The second constructor parameter of the ApiResource class is the display name used for the resource. It is used in the consent screen e.g. but it doesn't play a role in the auth process. "Developer.Scope" should be defined in the Scopes property of ApiResource.

Assuming that is in place: when the client requests "Developer.Scope", the value of the aud claim should be "Developer.API". So the scope that is requested determines which ApiResource (where its name is the value for aud) is used.
If this doesn't resolve the issue please provide us with the full configuration code on the IdentityServer side and the configuration of OIDC handler on the client side and the BearerT…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by paulguz-datapa
Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants