Cookie
class Cookie implements AuthenticationProviderInterface (View source)
Cookie based authentication provider.
Properties
| protected SessionConfigurationInterface | $sessionConfiguration | The session configuration. |
|
| protected Connection | $connection | The database connection. |
Methods
__construct(SessionConfigurationInterface $session_configuration, Connection $connection)
Constructs a new cookie authentication provider.
bool
applies(Request $request)
Checks whether suitable authentication credentials are on the request.
AccountInterface|null
authenticate(Request $request)
Authenticates the user.
AccountInterface|null
getUserFromSession(SessionInterface $session)
Returns the UserSession object for the given session.
Details
__construct(SessionConfigurationInterface $session_configuration, Connection $connection)
Constructs a new cookie authentication provider.
bool
applies(Request $request)
Checks whether suitable authentication credentials are on the request.
AccountInterface|null
authenticate(Request $request)
Authenticates the user.
protected AccountInterface|null
getUserFromSession(SessionInterface $session)
Returns the UserSession object for the given session.