mirror of
https://github.com/bitwarden/server.git
synced 2025-02-17 02:01:53 +01:00
SetIdentityServerOrigin
This commit is contained in:
parent
31e4db250b
commit
41908b7b68
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user