1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-12 13:19:01 -05:00

UseForwardedHeadersForAzure

This commit is contained in:
Kyle Spearrin
2017-07-21 12:53:26 -04:00
parent 64212a1874
commit f598b78ecb
5 changed files with 39 additions and 1 deletions

View File

@ -7,6 +7,7 @@ using Microsoft.Extensions.Configuration;
using Bit.Core;
using Bit.Core.Utilities;
using Serilog.Events;
using Microsoft.AspNetCore.HttpOverrides;
namespace Bit.Identity
{
@ -72,6 +73,12 @@ namespace Bit.Identity
.AddConsole()
.AddDebug();
// Forwarded headers
if(!env.IsDevelopment())
{
app.UseForwardedHeadersForAzure();
}
// Add IdentityServer to the request pipeline.
app.UseIdentityServer();
}