diff --git a/Security/Http/Authenticator/SamlAuthenticator.php b/Security/Http/Authenticator/SamlAuthenticator.php index 470bea2..835134f 100644 --- a/Security/Http/Authenticator/SamlAuthenticator.php +++ b/Security/Http/Authenticator/SamlAuthenticator.php @@ -23,7 +23,7 @@ use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface; -use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface; +use Symfony\Component\Security\Http\Authenticator\InteractiveAuthenticatorInterface; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\Security\Http\Authenticator\Passport\Passport; use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface; @@ -32,7 +32,7 @@ use Symfony\Component\Security\Http\HttpUtils; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; -class SamlAuthenticator implements AuthenticatorInterface, AuthenticationEntryPointInterface +class SamlAuthenticator implements InteractiveAuthenticatorInterface, AuthenticationEntryPointInterface { private $httpUtils; private $userProvider; @@ -131,6 +131,11 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio return $this->failureHandler->onAuthenticationFailure($request, $exception); } + public function isInteractive(): bool + { + return true; + } + protected function createPassport(): Passport { $attributes = $this->extractAttributes();