mirror of
https://github.com/bitwarden/server.git
synced 2025-04-09 23:28:12 -05:00
SetIdentityServerOrigin
This commit is contained in:
parent
31e4db250b
commit
41908b7b68
@ -16,6 +16,7 @@ using IdentityServer4.Stores;
|
|||||||
using Bit.Core.IdentityServer;
|
using Bit.Core.IdentityServer;
|
||||||
using IdentityServer4.Services;
|
using IdentityServer4.Services;
|
||||||
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
|
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
|
||||||
|
using IdentityServer4.Extensions;
|
||||||
|
|
||||||
namespace Bit.Identity
|
namespace Bit.Identity
|
||||||
{
|
{
|
||||||
@ -147,6 +148,12 @@ namespace Bit.Identity
|
|||||||
GlobalSettings globalSettings,
|
GlobalSettings globalSettings,
|
||||||
ILogger<Startup> logger)
|
ILogger<Startup> logger)
|
||||||
{
|
{
|
||||||
|
app.Use(async (ctx, next) =>
|
||||||
|
{
|
||||||
|
ctx.SetIdentityServerOrigin(globalSettings.BaseServiceUri.Identity);
|
||||||
|
await next();
|
||||||
|
});
|
||||||
|
|
||||||
IdentityModelEventSource.ShowPII = true;
|
IdentityModelEventSource.ShowPII = true;
|
||||||
|
|
||||||
app.UseSerilog(env, appLifetime, globalSettings);
|
app.UseSerilog(env, appLifetime, globalSettings);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user