Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ObjectManager $adminUserObjectManager, Elcodi\Component\User\Repository\AdminUserRepository $adminUserRepository ) | Generates a new OneTimeLoginAuthenticator injecting it's dependencies. | |
authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : |
Authenticate the received token and returns an authenticated token. | |
createToken ( |
Creates a token with the login key received on the query parameter. | |
supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean | Checks if the received token is a pre authenticated token. |
public __construct ( Doctrine\Common\Persistence\ObjectManager $adminUserObjectManager, Elcodi\Component\User\Repository\AdminUserRepository $adminUserRepository ) | ||
$adminUserObjectManager | Doctrine\Common\Persistence\ObjectManager | The admin user manager object. |
$adminUserRepository | Elcodi\Component\User\Repository\AdminUserRepository | The Admin user repository object. |
public authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : |
||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | The token generated with the login key. |
$userProvider | Symfony\Component\Security\Core\User\UserProviderInterface | A user provider. |
$providerKey | string | The security providerKey (The firewall security area) |
return | A pre-authenticated token generated using the user admin entity. |
public createToken ( |
||
$request | The current request. | |
$providerKey | string | The security providerKey (The firewall security area) |
return | A pre-authenticated token with the login key received. |
public supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | The token received. |
$providerKey | string | The security providerKey (The firewall security area) |
return | boolean | Returns true if the received token is of the expected type and for the provider key we are using. |