MaximeRainville\Auth0\LoginHandler
Handle login requests from MaximeRainville\Auth0\Authenticator.
Synopsis
class LoginHandler
extends RequestHandler
{
- // members
- protected Authenticator $authenticator;
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- private static bool $allow_public_registration = false;
- private $link;
- // methods
- public void __construct()
- public string link()
- public array login()
- public void LoginAsSomeoneElseForm()
- public HTTPResponse callback()
- public void getReturnReferer()
- protected HTTPResponse redirectAfterSuccessfulLogin()
- public Member checkLogin()
- public Member performLogin()
- protected Member|false updateMember()
- public bool allowUserToRegister()
- public void httpError()
Hierarchy
Extends
- SilverStripe\Control\RequestHandler
Members
private
- $allow_public_registration
—
MaximeRainville\Auth0\bool
Whatever we allow registration without any pre-condition. Defaults to `FALSE`. - $allowed_actions — array
- $link — string
- $url_handlers — array
protected
- $authenticator — SilverStripe\Security\Authenticator
Methods
protected
- redirectAfterSuccessfulLogin() — Login in the user and figure out where to redirect the browser.
- updateMember() — Given a user info from Auth0, will attempt to retrive a matching Member based on its email address.
public
- __construct()
- LoginAsSomeoneElseForm()
- allowUserToRegister() — Determines if users not already in the system are allowed to register.
- callback() — Login form handler method
- checkLogin() — Try to authenticate the user
- getReturnReferer()
- httpError()
- link() — Return a link to this request handler.
- login() — URL handler for the log-in screen
- performLogin() — Try to authenticate the user