PHP 클래스 CakeDC\Users\Controller\Component\UsersAuthComponent

상속: extends Cake\Controller\Component
파일 보기 프로젝트 열기: CakeDC/users

공개 메소드들

메소드 설명
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