PHP Class CakeDC\Users\Controller\Component\UsersAuthComponent

Inheritance: extends Cake\Controller\Component
Afficher le fichier Open project: CakeDC/users

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Method Details

_attachPermissionChecker() protected méthode

Attach the isUrlAuthorized event to allow using the Auth authorize from the UserHelper
protected _attachPermissionChecker ( ) : void
Résultat void

_initAuth() protected méthode

Initialize the AuthComponent and configure allowed actions
protected _initAuth ( ) : void
Résultat void

_isActionAllowed() protected méthode

Check if the action is in allowedActions array for the controller
protected _isActionAllowed ( array $requestParams = [] ) : boolean
$requestParams array request parameters
Résultat boolean

_loadGoogleAuthenticator() protected méthode

Load GoogleAuthenticator object
protected _loadGoogleAuthenticator ( ) : void
Résultat void

_loadRememberMe() protected méthode

Load RememberMe component and Auth objects
protected _loadRememberMe ( ) : void
Résultat void

_loadSocialLogin() protected méthode

Load Social Auth object
protected _loadSocialLogin ( ) : void
Résultat void

_validateConfig() protected méthode

Validate if the passed configuration makes sense
protected _validateConfig ( ) : void
Résultat void

initialize() public méthode

Initialize method, setup Auth if not already done passing the $config provided and setup the default table to Users.Users if not provided
public initialize ( array $config ) : void
$config array config options
Résultat void

isUrlAuthorized() public méthode

Check if a given url is authorized
public isUrlAuthorized ( Cake\Event\Event $event ) : boolean
$event Cake\Event\Event event
Résultat boolean