fix: rediriger vers la page login au lieu du SSO pour éviter boucle infinie
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ class EtlKeycloakAuthenticator extends OAuth2Authenticator implements Authentica
|
|||||||
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
|
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
|
||||||
{
|
{
|
||||||
if ($exception instanceof InvalidStateAuthenticationException) {
|
if ($exception instanceof InvalidStateAuthenticationException) {
|
||||||
return new RedirectResponse($this->router->generate('connect_keycloak_etl_start'));
|
return new RedirectResponse($this->router->generate('etl_login'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = strtr($exception->getMessageKey(), $exception->getMessageData());
|
$message = strtr($exception->getMessageKey(), $exception->getMessageData());
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class KeycloakAuthenticator extends OAuth2Authenticator implements Authenticatio
|
|||||||
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
|
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
|
||||||
{
|
{
|
||||||
if ($exception instanceof InvalidStateAuthenticationException) {
|
if ($exception instanceof InvalidStateAuthenticationException) {
|
||||||
return new RedirectResponse($this->router->generate('connect_keycloak_start'));
|
return new RedirectResponse($this->router->generate('app_home'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = strtr($exception->getMessageKey(), $exception->getMessageData());
|
$message = strtr($exception->getMessageKey(), $exception->getMessageData());
|
||||||
|
|||||||
Reference in New Issue
Block a user