Property | Type | Description | |
---|---|---|---|
$_adapter | Hybrid_Provider_Model | HybridAuth adapter. | |
$_initDone | boolean | Whether hybrid auth intialization is done. | |
$_profileModel | Cake\Datasource\RepositoryInterface | Social profile model | |
$_providerProfile | Hybrid_User_Profile | HybridAuth user profile. | |
$_userModel | Cake\Datasource\RepositoryInterface | User model. |
Method | Description | |
---|---|---|
__construct ( Cake\Controller\ComponentRegistry $registry, array $config ) | Constructor | |
adapter ( Hybrid_Provider_Model $adapter = null ) : Hybrid_Provider_Model | void | Get / set hybridauth adapter instance. | |
authenticate ( Cake\Network\Request $request, |
Authenticate a user based on the request information. | |
getUser ( Cake\Network\Request $request ) : array | boolean | Check if a provider is already connected, return user record if available. | |
implementedEvents ( ) : array | Returns a list of all events that this authenticate class will listen to. | |
logout ( Cake\Event\Event $event, array $user ) : void | Logout all providers | |
profile ( Hybrid_User_Profile $profile = null ) : Hybrid_User_Profile | void | Get / set hybridauth user profile instance. |
Method | Description | |
---|---|---|
_checkProvider ( array $data ) : string | boolean | Checks whether provider is supplied. | |
_getUser ( Hybrid_Provider_Model $adapter ) : array | Get user record for HybridAuth adapter and try to get associated user record from your application's database. | |
_init ( Cake\Network\Request $request ) : void | Initialize HybridAuth and this authenticator. | |
_newUser ( Cake\ORM\Entity $profile ) : Cake\ORM\Entity | Get new user entity. | |
_profileEntity ( Cake\ORM\Entity $profile = null ) : Cake\ORM\Entity | Get social profile entity | |
_query ( string $identifier ) : |
Get query to fetch social profile record. |
public __construct ( Cake\Controller\ComponentRegistry $registry, array $config ) | ||
$registry | Cake\Controller\ComponentRegistry | The Component registry used on this request. |
$config | array | Array of config to use. |
protected _newUser ( Cake\ORM\Entity $profile ) : Cake\ORM\Entity | ||
$profile | Cake\ORM\Entity | Social profile entity. |
return | Cake\ORM\Entity | User entity. |
protected _profileEntity ( Cake\ORM\Entity $profile = null ) : Cake\ORM\Entity | ||
$profile | Cake\ORM\Entity | Social profile entity |
return | Cake\ORM\Entity |
public authenticate ( Cake\Network\Request $request, |
||
$request | Cake\Network\Request | Request to get authentication information from. |
$response | A response object that can have headers added. | |
return | array | boolean | User array on success, false on failure. |
public implementedEvents ( ) : array | ||
return | array | List of events this class listens to. |
protected Hybrid_Provider_Model $_adapter | ||
return | Hybrid_Provider_Model |
protected bool $_initDone | ||
return | boolean |
protected RepositoryInterface,Cake\Datasource $_profileModel | ||
return | Cake\Datasource\RepositoryInterface |
protected Hybrid_User_Profile $_providerProfile | ||
return | Hybrid_User_Profile |