Skip to content

Commit

Permalink
fix: middleware pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 7, 2023
1 parent 8cdd617 commit c5c04d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public static IApplicationBuilder UseTheIdServer(this IApplicationBuilder app, I
app.UseIdentityServerAdminAuthentication("/providerhub", JwtBearerDefaults.AuthenticationScheme);
}

app.UseAuthorization()
app.UseRouting()
.UseAuthorization()
.Use((context, next) =>
{
var service = context.RequestServices;
Expand All @@ -133,7 +134,6 @@ public static IApplicationBuilder UseTheIdServer(this IApplicationBuilder app, I
return next();
})
.UsePrometheus(configuration)
.UseRouting()
.UseEndpoints(endpoints =>
{
endpoints.MapHealthChecks("healthz", new HealthCheckOptions
Expand Down

0 comments on commit c5c04d3

Please sign in to comment.