PHP Класс CakeDC\Users\Controller\Component\UsersAuthComponent

Наследование: extends Cake\Controller\Component
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_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

Описание методов

_attachPermissionChecker() защищенный Метод

Attach the isUrlAuthorized event to allow using the Auth authorize from the UserHelper
protected _attachPermissionChecker ( ) : void
Результат void

_initAuth() защищенный Метод

Initialize the AuthComponent and configure allowed actions
protected _initAuth ( ) : void
Результат void

_isActionAllowed() защищенный Метод

Check if the action is in allowedActions array for the controller
protected _isActionAllowed ( array $requestParams = [] ) : boolean
$requestParams array request parameters
Результат boolean

_loadGoogleAuthenticator() защищенный Метод

Load GoogleAuthenticator object
protected _loadGoogleAuthenticator ( ) : void
Результат void

_loadRememberMe() защищенный Метод

Load RememberMe component and Auth objects
protected _loadRememberMe ( ) : void
Результат void

_loadSocialLogin() защищенный Метод

Load Social Auth object
protected _loadSocialLogin ( ) : void
Результат void

_validateConfig() защищенный Метод

Validate if the passed configuration makes sense
protected _validateConfig ( ) : void
Результат void

initialize() публичный Метод

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
Результат void

isUrlAuthorized() публичный Метод

Check if a given url is authorized
public isUrlAuthorized ( Cake\Event\Event $event ) : boolean
$event Cake\Event\Event event
Результат boolean