1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

Fix comment

This commit is contained in:
Thomas Rittson 2025-03-27 10:33:15 +10:00
parent d72ab1448e
commit aa31e985c4
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27

View File

@ -257,10 +257,8 @@ public class Startup
// Add authentication and authorization to the request pipeline. // Add authentication and authorization to the request pipeline.
app.UseAuthentication(); app.UseAuthentication();
// Note: ICurrentContext is used in authorization middleware so it must be registered first
// Add current context - before authz. Is this OK?
app.UseMiddleware<CurrentContextMiddleware>(); app.UseMiddleware<CurrentContextMiddleware>();
app.UseAuthorization(); app.UseAuthorization();
// Add endpoints to the request pipeline. // Add endpoints to the request pipeline.