PreAuthenticatedAuthenticationProvider
in package
implements
AuthenticationProviderInterface
Processes a pre-authenticated authentication request.
This authentication provider will not perform any checks on authentication requests, as they should already be pre-authenticated. However, the UserProviderInterface implementation may still throw a UsernameNotFoundException, for example.
Tags
Interfaces, Classes, Traits and Enums
- AuthenticationProviderInterface
- AuthenticationProviderInterface is the interface for all authentication providers.
Table of Contents
- $providerKey : mixed
- $userChecker : mixed
- $userProvider : mixed
- __construct() : mixed
- authenticate() : mixed
- {@inheritdoc}
- supports() : bool
- Checks whether this provider supports the given token.
Properties
$providerKey
private
mixed
$providerKey
$userChecker
private
mixed
$userChecker
$userProvider
private
mixed
$userProvider
Methods
__construct()
public
__construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, string $providerKey) : mixed
Parameters
- $userProvider : UserProviderInterface
- $userChecker : UserCheckerInterface
- $providerKey : string
Return values
mixed —authenticate()
{@inheritdoc}
public
authenticate(TokenInterface $token) : mixed
Parameters
- $token : TokenInterface
Return values
mixed —supports()
Checks whether this provider supports the given token.
public
supports(TokenInterface $token) : bool
Parameters
- $token : TokenInterface
Return values
bool —true if the implementation supports the Token, false otherwise