Skip to content

Commit

Permalink
fix incorrect setting
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Mar 24, 2024
1 parent 55c438f commit 33ca1e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/HostingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public static WebApplication ConfigureServices(this WebApplicationBuilder builde
var configuration = builder.Configuration;
_env = builder.Environment;

JsonWebTokenHandler.DefaultInboundClaimTypeMap.Clear();

var stsServer = configuration["StsServer"];

services.AddAuthentication("dpoptokenscheme")
Expand Down Expand Up @@ -82,7 +80,8 @@ public static WebApplication ConfigureServices(this WebApplicationBuilder builde

public static WebApplication ConfigurePipeline(this WebApplication app)
{
IdentityModelEventSource.ShowPII = true;
IdentityModelEventSource.ShowPII = true;
JsonWebTokenHandler.DefaultInboundClaimTypeMap.Clear();

app.UseSerilogRequestLogging();

Expand Down

0 comments on commit 33ca1e5

Please sign in to comment.