1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

get rid of SetIdentityServerOrigin

This commit is contained in:
Kyle Spearrin 2020-08-31 20:22:47 -04:00
parent 613edab908
commit 1f086a1193

View File

@ -144,17 +144,6 @@ namespace Bit.Identity
GlobalSettings globalSettings,
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;
app.UseSerilog(env, appLifetime, globalSettings);