GuardAuthenticatorInterface::createAuthenticatedToken()

GuardTokenInterface createAuthenticatedToken(UserInterface $user, string $providerKey)

Create an authenticated token for the given user.

If you don't care about which token class is used or don't really understand what a "token" is, you can skip this method by extending the AbstractGuardAuthenticator class from your authenticator.

Parameters

UserInterface $user
string $providerKey The provider (i.e. firewall) key

Return Value

GuardTokenInterface

See also

AbstractGuardAuthenticator
doc_Symfony
2016-10-28 06:20:09
Comments
Leave a Comment

Please login to continue.