New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token audience problem #392
Comments
Got it, hope this helps others: The angular client after logging in is returned: id token:
and access token:
NOTE THE DIFFERENT AUDIENCES (aud:) The Asp.Net Core 2.2 Api Project startup.cs configured IdentityServer4:
and the Bearer authentication error was:
The "api1" in error: references startup.cs
Changing the Asp.Net Core 2.2 Api project startup.cs to:
resolved the issue.
|
I have a similar issue, posted here. |
@toddtsic thanks for the feedback |
@toddtsic : That helped me for my ocelot server, I don't know why in the world the options.ApiName is mean to be resource url. |
I'm getting the following error from my Asp.Net Core 2.2 Api project:
Examining the jwt returned by my Asp.Net Core 2.2 STS project with IdentityServer 4 components at versions:
shows an aud of "angularclient" (not https://localhost:44340/resources)
Any suggestions?
The text was updated successfully, but these errors were encountered: