1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

Filled custom error handling gaps for SSO (#922)

* Filled custom error handling gaps for SSO

* Removed explicit logger from HomeController
This commit is contained in:
Chad Scharf
2020-09-09 10:07:31 -04:00
committed by GitHub
parent 55e0f82139
commit 1c3ba46246
3 changed files with 48 additions and 6 deletions

View File

@ -80,7 +80,10 @@ namespace Bit.Sso
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
IdentityModelEventSource.ShowPII = true;
if (env.IsDevelopment() || globalSettings.SelfHosted)
{
IdentityModelEventSource.ShowPII = true;
}
app.UseSerilog(env, appLifetime, globalSettings);
@ -101,6 +104,10 @@ namespace Bit.Sso
app.UseDeveloperExceptionPage();
app.UseCookiePolicy();
}
else
{
app.UseExceptionHandler("/Error");
}
app.UseCoreLocalization();