UserAuthenticator
in package
implements
UserAuthenticatorInterface
Uses
FirewallAwareTrait
A decorator that delegates all method calls to the authenticator manager of the current firewall.
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- authenticateUser() : Response|null
- Convenience method to programmatically login a user and return a Response *if any* for success.
Methods
__construct()
public
__construct(FirewallMap $firewallMap, ContainerInterface $userAuthenticators, RequestStack $requestStack) : mixed
Parameters
- $firewallMap : FirewallMap
- $userAuthenticators : ContainerInterface
- $requestStack : RequestStack
authenticateUser()
Convenience method to programmatically login a user and return a Response *if any* for success.
public
authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request[, array<string|int, mixed> $badges = [] ]) : Response|null
Parameters
- $user : UserInterface
- $authenticator : AuthenticatorInterface
- $request : Request
- $badges : array<string|int, mixed> = []
-
Optionally, pass some Passport badges to use for the manual login