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:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user