PHP Class Webiny\Component\Security\User\AnonymousUser

This is the user class that is created if we cannot identify the user or when we return the user from the token.
Inheritance: extends AbstractUser
Show file Open project: Webiny/Framework

Public Methods

Method Description
__construct ( ) Base constructor.
authenticate ( Login $login, Firewall $firewall ) : boolean This method verifies the credentials of current user with the credentials provided from the Login object.

Method Details

__construct() public method

Base constructor.
public __construct ( )

authenticate() public method

This method verifies the credentials of current user with the credentials provided from the Login object.
public authenticate ( Login $login, Firewall $firewall ) : boolean
$login Webiny\Component\Security\Authentication\Providers\Login
$firewall Webiny\Component\Security\Authentication\Firewall
return boolean Return true if credentials are valid, otherwise return false.