mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
UseForwardedHeadersForAzure
This commit is contained in:
@ -150,6 +150,12 @@ namespace Bit.Api
|
||||
})
|
||||
.AddDebug();
|
||||
|
||||
// Forwarded headers
|
||||
if(!env.IsDevelopment())
|
||||
{
|
||||
app.UseForwardedHeadersForAzure();
|
||||
}
|
||||
|
||||
// Rate limiting
|
||||
app.UseMiddleware<CustomIpRateLimitMiddleware>();
|
||||
|
||||
@ -173,7 +179,7 @@ namespace Bit.Api
|
||||
app.UseMvc();
|
||||
}
|
||||
|
||||
private IdentityServerAuthenticationOptions GetIdentityOptions(IHostingEnvironment env,
|
||||
private IdentityServerAuthenticationOptions GetIdentityOptions(IHostingEnvironment env,
|
||||
string authority, string suffix)
|
||||
{
|
||||
var options = new IdentityServerAuthenticationOptions
|
||||
|
Reference in New Issue
Block a user