Skip to content

Commit 7d1af28

Browse files
committed
add toc
1 parent 12ca68e commit 7d1af28

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

support/entra/entra-id/app-integration/troubleshoot-wif10201-no-valid key-securitytoken-mvc.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ ms.topic: troubleshooting-general
88
ms.date: 02/05/2025
99
ms.custom: sap:Issues Signing In to Applications
1010
---
11-
# 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
1212

1313
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.
1414

1515
## Symptom
1616

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.
1818

19-
```dotnetcli
19+
```dotnecli
2020
Error Details:
2121
Server Error in ‘/’ Application.
2222
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
2626
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>/’.
2727
```
2828

29-
## Cause
29+
## Cause
3030

3131
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.
3232

support/entra/entra-id/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
items:
5252
- name: IDX10501 Error in ASP.NET Core with Azure B2C Custom Policy
5353
href: app-integration/troubleshoot-error-idx10501-aspnet-b2c.md
54+
- name: WIF10201 No valid key mapping found
55+
href: app-integration/troubleshoot-wif10201-no-valid key-securitytoken-mvc.md
5456

5557
- name: Troubleshoot adding apps
5658
href: app-integration/troubleshoot-adding-apps.md

0 commit comments

Comments
 (0)