Skip to content

Commit 07aba24

Browse files
committed
fix authorization in webhooks api
1 parent e671f32 commit 07aba24

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Services/Webhooks/Webhooks.API/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
8080

8181
app.UseCors("CorsPolicy");
8282

83+
app.UseRouting();
8384
ConfigureAuth(app);
8485

85-
app.UseRouting();
8686
app.UseEndpoints(endpoints =>
8787
{
8888
endpoints.MapDefaultControllerRoute();
@@ -119,6 +119,7 @@ protected virtual void ConfigureAuth(IApplicationBuilder app)
119119
*/
120120

121121
app.UseAuthentication();
122+
app.UseAuthorization();
122123
}
123124

124125
protected virtual void ConfigureEventBus(IApplicationBuilder app)

0 commit comments

Comments
 (0)