Class Socialveo\Core\library\HybridAuthWrapper

InheritanceSocialveo\Core\library\HybridAuthWrapper » Phalcon\Mvc\User\Component
Uses TraitsSocialveo\Core\Translatable

Class HybridAuthWrapper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor HybridAuthWrapper Socialveo\Core\library\HybridAuthWrapper
_t() Gets translations Socialveo\Core\Translatable
handle() Handles the social login and social registration - oAuth redirect flows Socialveo\Core\library\HybridAuthWrapper
handleAuthorizationEnd() Handles the authorization end scenario Socialveo\Core\library\HybridAuthWrapper
logout() Logout all providers Socialveo\Core\library\HybridAuthWrapper
setProviderToken() Sets provider token Socialveo\Core\library\HybridAuthWrapper
setUserStatus() Set user status on giving provider for given user Socialveo\Core\library\HybridAuthWrapper
t() Gets translations Socialveo\Core\Translatable

Method Details

__construct() public method (available since version 1.0)

Constructor HybridAuthWrapper

Initializes the HybridAuth library and sets an encryption key to crypt data in session store

public void __construct ( )
handle() public method (available since version 1.0)

Handles the social login and social registration - oAuth redirect flows

public Socialveo\Core\models\User|null handle ( $queryProvider, Socialveo\Core\models\User $user null )
$queryProvider string
$user Socialveo\Core\models\User
handleAuthorizationEnd() public method (available since version 1.0)

Handles the authorization end scenario

public mixed handleAuthorizationEnd ( $provider, &$user null )
$provider string
$user Socialveo\Core\models\User

[optional]

logout() public method (available since version 1.0)

Logout all providers

public void logout ( )
setProviderToken() public method (available since version 1.0)

Sets provider token

public void setProviderToken ( $provider, $token )
$provider string
$token string
setUserStatus() public static method (available since version 1.0)

Set user status on giving provider for given user

public static boolean setUserStatus ( $user_uuid, $provider, $content )
$user_uuid string
$provider string
$content string