Skip to content

Commit e9e04b7

Browse files
committed
Merge branch 'main25' of https://github.com/genlin/SupportArticles-docs-pr into main25
2 parents 66b982b + 1440939 commit e9e04b7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: ASP.NET MVC application error WIF10201: No valid key mapping found for securityToken
2+
title: ASP.NET MVC application error WIF10201 No valid key mapping found for securityToken
33
description: This article provides guidance for troubleshooting the the error "WIF10201- No valid key mapping found for securityToken".
44
author: genlin
55
ms.author: bachoang
@@ -8,6 +8,7 @@ ms.topic: troubleshooting-general
88
ms.date: 02/05/2025
99
ms.custom: sap:Issues Signing In to Applications
1010
---
11+
1112
# WIF10201: No valid key mapping found for securityToken in ASP.NET application
1213

1314
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.
@@ -18,12 +19,12 @@ The ASP.NET MVC application was working previously. However, the following error
1819

1920
```dotnecli
2021
Error Details:
21-
Server Error in ‘/’ Application.
22-
WIF10201: No valid key mapping found for securityToken: ‘System.IdentityModel.Tokens.X509SecurityToken and issuer: https://sts.windows.net/<Directory ID>/.
22+
Server Error in '/' Application.
23+
WIF10201: No valid key mapping found for securityToken: ‘System.IdentityModel.Tokens.X509SecurityToken' and issuer: 'https://sts.windows.net/<Directory ID>/'.
2324
2425
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
2526
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+
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>/'.
2728
```
2829

2930
## Cause
@@ -52,4 +53,4 @@ The Entra ID uses a [signing key rollover mechanism](/entra/identity-platform/si
5253

5354
### Solution
5455

55-
You can either update the certificate thumbprints in the web.config file manually or automate the process through code. For more information, see [Best practices for keys metadata caching and validation](/entra/identity-platform/signing-key-rollover#best-practices-for-keys-metadata-caching-and-validation)
56+
You can either update the certificate thumbprints in the web.config file manually or automate the process through code. For more information, see [Best practices for keys metadata caching and validation](/entra/identity-platform/signing-key-rollover#best-practices-for-keys-metadata-caching-and-validation)

0 commit comments

Comments
 (0)