Method | Description | |
---|---|---|
initialize ( array $config ) : void | Initialize method, setup Auth if not already done passing the $config provided and setup the default table to Users.Users if not provided | |
isUrlAuthorized ( Cake\Event\Event $event ) : boolean | Check if a given url is authorized |
Method | Description | |
---|---|---|
_attachPermissionChecker ( ) : void | Attach the isUrlAuthorized event to allow using the Auth authorize from the UserHelper | |
_initAuth ( ) : void | Initialize the AuthComponent and configure allowed actions | |
_isActionAllowed ( array $requestParams = [] ) : boolean | Check if the action is in allowedActions array for the controller | |
_loadGoogleAuthenticator ( ) : void | Load GoogleAuthenticator object | |
_loadRememberMe ( ) : void | Load RememberMe component and Auth objects | |
_loadSocialLogin ( ) : void | Load Social Auth object | |
_validateConfig ( ) : void | Validate if the passed configuration makes sense |
protected _attachPermissionChecker ( ) : void | ||
return | void |
protected _isActionAllowed ( array $requestParams = [] ) : boolean | ||
$requestParams | array | request parameters |
return | boolean |
protected _loadGoogleAuthenticator ( ) : void | ||
return | void |
protected _loadRememberMe ( ) : void | ||
return | void |
protected _loadSocialLogin ( ) : void | ||
return | void |
protected _validateConfig ( ) : void | ||
return | void |
public initialize ( array $config ) : void | ||
$config | array | config options |
return | void |
public isUrlAuthorized ( Cake\Event\Event $event ) : boolean | ||
$event | Cake\Event\Event | event |
return | boolean |