#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))
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"ClientSecret": ""
|
||||
},
|
||||
"Keycloak": {
|
||||
"Authority": "https://10.4.0.131/keycloak/realms/webzine-realm",
|
||||
"PublicOrigin": "http://192.168.10.80:8080"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user