PHP Class Contao\CoreBundle\Security\ContaoAuthenticator

Inheritance: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, implements Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface, use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | ContaoToken | AnonymousToken Authenticates a token.
createToken ( Request $request, string $providerKey ) : AnonymousToken Creates an authentication token.
supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean Checks if the token is supported.

Private Methods

Method Description
canSkipAuthentication ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean Checks if the authentication can be skipped.

Method Details

authenticateToken() public method

Authenticates a token.
public authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | ContaoToken | AnonymousToken
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$userProvider Symfony\Component\Security\Core\User\UserProviderInterface
$providerKey string
return Symfony\Component\Security\Core\Authentication\Token\TokenInterface | Contao\CoreBundle\Security\Authentication\ContaoToken | Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

createToken() public method

Creates an authentication token.
public createToken ( Request $request, string $providerKey ) : AnonymousToken
$request Symfony\Component\HttpFoundation\Request
$providerKey string
return Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

supportsToken() public method

Checks if the token is supported.
public supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$providerKey string
return boolean