using AppModelv2_WebApp_OpenIDConnect_DotNet give me error saying TOKEN does not have KID

Shah, Samip 0 Reputation points
2025-03-12T19:23:53.43+00:00

I started using
https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet

for signing in using Microsoft Azure. All redirect URIs are good and app on Azure side is configured properly but when i try to access the signin it gives me wierd error.

Server Error in '/test' Application.


IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'Microsoft.IdentityModel.Tokens.X509SecurityKey, KeyId: 'imi0Y2z0dYKxBttAqK_Tt5hYBTk', InternalId: 'imi0Y2z0dYKxBttAqK_Tt5hYBTk'. , KeyId: imi0Y2z0dYKxBttAqK_Tt5hYBTk Microsoft.IdentityModel.Tokens.RsaSecurityKey, KeyId: 'imi0Y2z0dYKxBttAqK_Tt5hYBTk', InternalId: 'THwdc9QL20JtJrBQsxdxjKs4XE2YUBdWEm1DveRIK2c'. , KeyId: imi0Y2z0dYKxBttAqK_Tt5hYBTk Microsoft.IdentityModel.Tokens.X509SecurityKey, KeyId:

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,702 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.