AnonymousAuthenticationProvider
in package
implements
AuthenticationProviderInterface
AnonymousAuthenticationProvider validates AnonymousToken instances.
Tags
Interfaces, Classes, Traits and Enums
- AuthenticationProviderInterface
- AuthenticationProviderInterface is the interface for all authentication providers.
Table of Contents
- $secret : string
- Used to determine if the token is created by the application instead of a malicious client.
- __construct() : mixed
- authenticate() : mixed
- {@inheritdoc}
- supports() : bool
- Checks whether this provider supports the given token.
Properties
$secret
Used to determine if the token is created by the application instead of a malicious client.
private
string
$secret
Methods
__construct()
public
__construct(string $secret) : mixed
Parameters
- $secret : string
-
The secret shared with the AnonymousToken
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