PHP Interface eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface

Authenticators are meant to be used to run authentication programmatically, i.e. outside the firewall context.
Show file Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
authenticate ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface Runs authentication against provided request and returns the authenticated security token.
logout ( Request $request ) : Response Performs logout by running configured logout handlers.

Method Details

authenticate() public method

This method typically does: - The authentication by itself (i.e. matching a user) - User type checks (e.g. check user activation) - Inject authenticated token in the SecurityContext - (optional) Trigger SecurityEvents::INTERACTIVE_LOGIN event
public authenticate ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\Security\Core\Authentication\Token\TokenInterface

logout() public method

Performs logout by running configured logout handlers.
public logout ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response