1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-17 02:01:53 +01:00

SetIdentityServerOrigin

This commit is contained in:
Kyle Spearrin 2020-08-31 16:06:24 -04:00
parent 31e4db250b
commit 41908b7b68

View File

@ -16,6 +16,7 @@ using IdentityServer4.Stores;
using Bit.Core.IdentityServer;
using IdentityServer4.Services;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using IdentityServer4.Extensions;
namespace Bit.Identity
{
@ -147,6 +148,12 @@ namespace Bit.Identity
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
app.Use(async (ctx, next) =>
{
ctx.SetIdentityServerOrigin(globalSettings.BaseServiceUri.Identity);
await next();
});
IdentityModelEventSource.ShowPII = true;
app.UseSerilog(env, appLifetime, globalSettings);