I have a 3 tier application, ie:
On my local machine, everything looks fine... but when I install it on a remote server (into a docker container), I got the following issue.
First, I create an account, then sign in... then I wait for some time and when I come back to my server, it failed on the blazor web app side with the following message:
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key: kid: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
If I delete the cookies, then I can log again... but after some time I got the same problem again and again !
So, my cookie looks good but when the blazor app try to contact the API server, I got an "unauthorized" error !
Looks like the identity-server (which is the authority of the API server) cannot validate anymore !
Noticed that I use:
I also have a post of StackOverflow about this, but for now nobody seems tho help :-(
There you can even find some code ;-)
If someone has an idea, welcome please... it drives me crazy :-P ;-)
Thanks
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.
I'm having the same issue! No solution so far... Any guidance on how to proceed?
I'm having the same issue! No solution so far... Any guidance on how to proceed?
Did you find a solution?
Hi @AshishMantosh
Yes, I've recently found the solution after I open a Ticket in Azure because of it. The solution provided by Microsoft is as follows:
Microsoft
It appears you are using Claims-Mapping and have a custom signing key. The Metadata link for this requires the addition of an APPID query string:
https://login.microsoftonline.com/{TENANT_ID}/v2.0/.well-known/openid-configuration?appid={APPLICATION_ID}
This key is found at the following location:
https://login.microsoftonline.com/{TENANT_ID}/discovery/v2.0/keys?appid={APPLICATION_ID}
I hope this helps.
Thanks a lot.
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.