Skip to content

Commit

Permalink
fix: auth
Browse files Browse the repository at this point in the history
  • Loading branch information
loktionov129 committed Oct 30, 2020
1 parent 3c0015d commit 9a86811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mpgp.RestApiServer/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService
app.UseWebSockets(wsOptions);
app.MapWebSocketManager(Configuration["Params:WebSocketPath"], serviceProvider.GetService<WebSocketRouter>());

app.UseAuthentication();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
Expand Down

0 comments on commit 9a86811

Please sign in to comment.