Skip to content

Commit 4be3bdc

Browse files
authored
Merge pull request #8231 from MicrosoftDocs/main
Auto push to live 2025-02-17 02:00:02
2 parents 63d94bf + f46b719 commit 4be3bdc

14 files changed

+96
-379
lines changed

.openpublishing.redirection.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12663,6 +12663,38 @@
1266312663
{
1266412664
"source_path": "support/dynamics/gp/integration-manager-log-file-does-not-print.md",
1266512665
"redirect_url": "/dynamics-gp/installation/developer-tools"
12666+
},
12667+
{
12668+
"source_path": "support/mem/configmgr/client-installation/client-installation-fails-without-bits.md",
12669+
"redirect_url": "/previous-versions/troubleshoot/configmgr/client-installation-fails-without-bits"
12670+
},
12671+
{
12672+
"source_path": "support/mem/configmgr/client-installation/client-piloting-package-fails-after-site-expansion.md",
12673+
"redirect_url": "/previous-versions/troubleshoot/configmgr/client-piloting-package-fails-after-site-expansion"
12674+
},
12675+
{
12676+
"source_path": "support/mem/configmgr/client-installation/configmgr-clients-reinstall-every-five-hours.md",
12677+
"redirect_url": "/previous-versions/troubleshoot/configmgr/configmgr-clients-reinstall-every-five-hours"
12678+
},
12679+
{
12680+
"source_path": "support/mem/configmgr/client-installation/mac-client-enrollment-fails.md",
12681+
"redirect_url": "/previous-versions/troubleshoot/configmgr/mac-client-enrollment-fails"
12682+
},
12683+
{
12684+
"source_path": "support/mem/configmgr/content-management/anonymous-authentication-disabled.md",
12685+
"redirect_url": "/previous-versions/troubleshoot/configmgr/anonymous-authentication-disabled"
12686+
},
12687+
{
12688+
"source_path": "support/mem/configmgr/setup-migrate-backup-recovery/management-points-fail-http-500-errors.md",
12689+
"redirect_url": "/previous-versions/troubleshoot/configmgr/management-points-fail-http-500-errors"
12690+
},
12691+
{
12692+
"source_path": "support/mem/configmgr/update-management/adr-updates-download-failure.md",
12693+
"redirect_url": "/previous-versions/troubleshoot/configmgr/adr-updates-download-failure"
12694+
},
12695+
{
12696+
"source_path": "support/mem/configmgr/update-management/wsus-not-sync-with-certificate-error-800b0109.md",
12697+
"redirect_url": "/previous-versions/troubleshoot/configmgr/wsus-not-sync-with-certificate-error-800b0109"
1266612698
}
1266712699
]
1266812700
}

support/azure/virtual-machines/linux/suse-public-cloud-connectivity-registration-issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ If instances aren't regularly updated, they can become incompatible with our upd
258258
sudo cd tmp
259259
sudo tar xvfz suse-public-registration.tgz
260260
sudo cd rpms
261-
sudo zypper --force --no-refresh --no-remote --non-interactive install *.rpm
261+
sudo zypper --no-refresh --no-remote --non-interactive install --force *.rpm
262262
```
263263

264264
8. Register the VM again:
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: ASP.NET MVC Application Error WIF10201 No Valid Key Mapping Found for SecurityToken
3+
description: This article provides guidance for troubleshooting the error, "WIF10201- No valid key mapping found for securityToken."
4+
author: genlin
5+
ms.author: bachoang
6+
ms.service: entra-id
7+
ms.topic: troubleshooting-general
8+
ms.date: 02/05/2025
9+
ms.custom: sap:Issues Signing In to Applications
10+
---
11+
12+
# "WIF10201: No valid key mapping found for securityToken" error in ASP.NET application
13+
14+
This article provides guidance for troubleshooting an authentication issue that occurs 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.
15+
16+
## Symptoms
17+
18+
The ASP.NET MVC application that was previously working generates the following error message although no changes were made to the application:
19+
20+
```
21+
Error Details:
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>/'.
24+
25+
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.
26+
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>/'.
28+
```
29+
30+
## Cause
31+
32+
To validate the signature of the token that's returned by the Entra ID after a successful sign-in, WIF uses the certificate thumbprints that are in the Web.config file, as shown in the following example:
33+
34+
```web.config
35+
<issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry,
36+
System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
37+
<authority name="https://sts.windows.net/<Directory ID>/">
38+
<keys>
39+
<add thumbprint="C142E..." />
40+
<add thumbprint="8BA94..." />
41+
<add thumbprint="D92E1..." />
42+
</keys>
43+
<validIssuers>
44+
<add name="https://sts.windows.net/<Directory ID>/" />
45+
</validIssuers>
46+
</authority>
47+
</issuerNameRegistry>
48+
```
49+
50+
The "WIF10201" error occurs if none of these certificate thumbprints match the one that's used by Entra ID to sign the token.
51+
52+
The Entra ID uses a [signing key rollover mechanism](/entra/identity-platform/signing-key-rollover) to update the certificate that's used to sign authentication tokens periodically. This key rollover causes the initial certificate thumbprints that are configured in the Web.config file to become invalid.
53+
54+
## Solution
55+
56+
You can either manually update the certificate thumbprints that are in the Web.config file 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).

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-validkey-securitytoken-mvc.md
5456

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

support/mem/configmgr/client-installation/client-installation-fails-without-bits.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

support/mem/configmgr/client-installation/client-piloting-package-fails-after-site-expansion.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

support/mem/configmgr/client-installation/configmgr-clients-reinstall-every-five-hours.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

support/mem/configmgr/client-installation/mac-client-enrollment-fails.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

support/mem/configmgr/content-management/anonymous-authentication-disabled.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)