Skip to content

Commit

Permalink
the saml authenticator is an interactive authenticator
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Oct 21, 2022
1 parent 7975fc8 commit 4f6ca38
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Security/Http/Authenticator/SamlAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4f6ca38

Please sign in to comment.