Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

BeAuthGoogleComponent Class Reference

Google User auth component. More...

Inheritance diagram for BeAuthGoogleComponent:
BeAuthComponent

List of all members.

Public Member Functions

 startup ($controller=null)
 login ()
 logout ()
 User logout: remove session data for the user.
 getUser ()
 Get the current logged user.
 loadProfile ()
 createUser ($profile=null, $groups=array(), $createCard=false)
 Create new user.
 createCard ($u, $profile=null)

Public Attributes

 $components = array('Transaction')
 $uses = array('Image', 'Card')
 $userAuth = 'google'
 $relatedBy = 'e-mail'
 $disabled = false

Protected Member Functions

 checkSessionKey ()
 Check whether session key is valid.
 loginUrl ()
 getCurrentUrl ()
 uploadAvatarByUrl ($userData)

Protected Attributes

 $params = null
 $vendorController = null
 $oauthTokens = null
 $accessTokens = null
 $userIdPrefix = 'google-'
 $permissions = array('email', 'profile')

Detailed Description

Google User auth component.

Definition at line 19 of file be_auth_google.php.


Member Function Documentation

BeAuthGoogleComponent::createUser ( userData = null,
groups = array(),
notify = false 
)

Create new user.

Parameters:
array $userData
array $groups (contains groups names)
boolean $notify (send newUser backend notify)
Returns:
int id of user created
Exceptions:
BeditaException 

Reimplemented from BeAuthComponent.

Definition at line 165 of file be_auth_google.php.

References BeAuthComponent::userGroupModel().

BeAuthGoogleComponent::logout (  ) 

User logout: remove session data for the user.

Returns:
boolean

Reimplemented from BeAuthComponent.

Definition at line 132 of file be_auth_google.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus