1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

context middleware comes after auth

This commit is contained in:
Kyle Spearrin 2017-10-09 16:21:49 -04:00
parent 2c21e3e100
commit 32c93f09a7

View File

@ -188,12 +188,12 @@ namespace Bit.Api
// Add Cors
app.UseCors("All");
// Add current context
app.UseMiddleware<CurrentContextMiddleware>();
// Add authentication to the request pipeline.
app.UseAuthentication();
// Add current context
app.UseMiddleware<CurrentContextMiddleware>();
// Add MVC to the request pipeline.
app.UseMvc();
}