From 9a868119bc7c7d6237dc04c8ec73871202cdb6e7 Mon Sep 17 00:00:00 2001 From: Alexander Loktionov Date: Sat, 31 Oct 2020 01:27:25 +0300 Subject: [PATCH] fix: auth --- src/Mpgp.RestApiServer/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mpgp.RestApiServer/Startup.cs b/src/Mpgp.RestApiServer/Startup.cs index f6ebee3..c542d31 100644 --- a/src/Mpgp.RestApiServer/Startup.cs +++ b/src/Mpgp.RestApiServer/Startup.cs @@ -81,8 +81,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService app.UseWebSockets(wsOptions); app.MapWebSocketManager(Configuration["Params:WebSocketPath"], serviceProvider.GetService()); - app.UseAuthentication(); app.UseRouting(); + app.UseAuthentication(); + app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers();