#1 : Teeest.
This commit is contained in:
@@ -181,6 +181,14 @@ try
|
||||
|
||||
options.Events = new OpenIdConnectEvents
|
||||
{
|
||||
OnAuthenticationFailed = context =>
|
||||
{
|
||||
logger.Error(context.Exception, "Erreur d'authentification OIDC : {Message}", context.Exception.Message);
|
||||
context.HandleResponse();
|
||||
context.Response.Redirect("/account/auth-error?message=" + Uri.EscapeDataString(context.Exception.Message));
|
||||
return Task.CompletedTask;
|
||||
},
|
||||
|
||||
OnRedirectToIdentityProvider = context =>
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(publicOrigin))
|
||||
|
||||
Reference in New Issue
Block a user