Skip to content

Commit

Permalink
Add back fallback policy for authn
Browse files Browse the repository at this point in the history
  • Loading branch information
olaals committed Nov 28, 2024
1 parent 73cea35 commit 1dc3d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
.EnableTokenAcquisitionToCallDownstreamApi()
.AddInMemoryTokenCaches();

// Disable fallback policy until all endpoints are oauth protected
//builder.Services.AddAuthorizationBuilder().AddFallbackPolicy(
//"RequireAuthenticatedUser", policy => policy.RequireAuthenticatedUser()
//);
builder.Services.AddAuthorizationBuilder().AddFallbackPolicy(
"RequireAuthenticatedUser", policy => policy.RequireAuthenticatedUser()
);

var app = builder.Build();

string basePath = builder.Configuration["ApiBaseRoute"] ?? "";
Expand Down

0 comments on commit 1dc3d9f

Please sign in to comment.