mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 06:28:14 -05:00
context middleware comes after auth
This commit is contained in:
parent
2c21e3e100
commit
32c93f09a7
@ -188,12 +188,12 @@ namespace Bit.Api
|
|||||||
// Add Cors
|
// Add Cors
|
||||||
app.UseCors("All");
|
app.UseCors("All");
|
||||||
|
|
||||||
// Add current context
|
|
||||||
app.UseMiddleware<CurrentContextMiddleware>();
|
|
||||||
|
|
||||||
// Add authentication to the request pipeline.
|
// Add authentication to the request pipeline.
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
||||||
|
// Add current context
|
||||||
|
app.UseMiddleware<CurrentContextMiddleware>();
|
||||||
|
|
||||||
// Add MVC to the request pipeline.
|
// Add MVC to the request pipeline.
|
||||||
app.UseMvc();
|
app.UseMvc();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user