mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 11:08:16 -05:00
get rid of SetIdentityServerOrigin
This commit is contained in:
parent
613edab908
commit
1f086a1193
@ -144,17 +144,6 @@ namespace Bit.Identity
|
|||||||
GlobalSettings globalSettings,
|
GlobalSettings globalSettings,
|
||||||
ILogger<Startup> logger)
|
ILogger<Startup> logger)
|
||||||
{
|
{
|
||||||
if (globalSettings.SelfHosted)
|
|
||||||
{
|
|
||||||
var identityUri = new Uri(globalSettings.BaseServiceUri.Identity);
|
|
||||||
app.Use(async (ctx, next) =>
|
|
||||||
{
|
|
||||||
ctx.SetIdentityServerOrigin($"{identityUri.Scheme}://{identityUri.Host}");
|
|
||||||
ctx.SetIdentityServerBasePath(identityUri.LocalPath);
|
|
||||||
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