From 65c99a3b929bd96d629a539cbd9cb1448b6dfa13 Mon Sep 17 00:00:00 2001 From: jennyf19 Date: Mon, 19 Apr 2021 10:16:08 -0700 Subject: [PATCH] revert wilson workaround and use latest 6.10.2 (#1147) --- .../MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs | 2 -- .../MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Microsoft.Identity.Web/WebApiExtensions/MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs b/src/Microsoft.Identity.Web/WebApiExtensions/MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs index ff39626d1..c1cd9d8f7 100644 --- a/src/Microsoft.Identity.Web/WebApiExtensions/MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs +++ b/src/Microsoft.Identity.Web/WebApiExtensions/MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs @@ -155,8 +155,6 @@ private static void AddMicrosoftIdentityWebApiImplementation( string jwtBearerScheme, bool subscribeToJwtBearerMiddlewareDiagnosticsEvents) { - JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Remove(ClaimConstants.Name); - builder.AddJwtBearer(jwtBearerScheme, configureJwtBearerOptions); builder.Services.Configure(jwtBearerScheme, configureMicrosoftIdentityOptions); diff --git a/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs b/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs index e877036c5..f9c8699be 100644 --- a/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs +++ b/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs @@ -233,8 +233,6 @@ private static void AddMicrosoftIdentityWebAppInternal( throw new ArgumentNullException(nameof(configureMicrosoftIdentityOptions)); } - JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Remove(ClaimConstants.Name); - builder.Services.Configure(configureMicrosoftIdentityOptions); builder.Services.AddHttpClient();