You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# WIF10201: No valid key mapping found for securityToken in ASP.NET MVC application
11
+
# WIF10201: No valid key mapping found for securityToken in ASP.NET application
12
12
13
13
This article provides guidance for troubleshooting an authentication issue in an ASP.NET MVC application that uses both [WS-Federation](https://github.com/Azure-Samples/active-directory-dotnet-webapp-wsfederation) OWIN middleware and [Windows Identity Foundation](../../../windows-server/user-profiles-and-logon/windows-identity-foundation.md) (WIF) to authenticate to Microsoft Entra ID.
14
14
15
15
## Symptom
16
16
17
-
The ASP.NET MVC application was working previously; however, the following error is now occurring without any changes to the application.
17
+
The ASP.NET MVC application was working previously. However, the following error is now occurring without any changes to the application.
18
18
19
-
```dotnetcli
19
+
```dotnecli
20
20
Error Details:
21
21
Server Error in ‘/’ Application.
22
22
WIF10201: No valid key mapping found for securityToken: ‘System.IdentityModel.Tokens.X509SecurityToken’ and issuer: ‘https://sts.windows.net/<Directory ID>/’.
@@ -26,7 +26,7 @@ Description: An unhandled exception occurred during the execution of the current
26
26
Exception Details: System.IdentityModel.Tokens.SecurityTokenValidationException: WIF10201: No valid key mapping found for securityToken: ‘System.IdentityModel.Tokens.X509SecurityToken’ and issuer: ‘https://sts.windows.net/<Directory ID>/’.
27
27
```
28
28
29
-
## Cause
29
+
## Cause
30
30
31
31
Windows Identity Foundation uses the certificate thumbprint(s) in the web.config file (shown below) to verify the signature of the token returned from THE Entra ID upon successful sign in.
0 commit comments