Protected Member Functions | |
fetchAttributes () | |
getCodeUrl ($redirect_uri) | |
getTokenUrl ($code) | |
getAccessToken ($code) | |
saveAccessToken ($token) | |
makeRequest ($url, $options=array(), $parseJson=true) | |
fetchJsonError ($json) | |
![]() | |
restoreAccessToken () | |
![]() | |
initRequest ($url, $options=array()) | |
parseJson ($response) | |
getStateKeyPrefix () | |
setState ($key, $value, $defaultValue=null) | |
hasState ($key) | |
getState ($key, $defaultValue=null) | |
_fetchAttributes () |
Protected Attributes | |
$name = 'google_oauth' | |
$title = 'Google' | |
$type = 'OAuth' | |
$jsArguments = array('popup' => array('width' => 500, 'height' => 450)) | |
$client_id = '' | |
$client_secret = '' | |
$scope = 'https://www.googleapis.com/auth/userinfo.profile' | |
$providerOptions | |
![]() | |
$client_id | |
$client_secret | |
$scope = '' | |
$providerOptions | |
$access_token = '' | |
![]() | |
$name | |
$title | |
$type | |
$jsArguments = array() | |
$attributes = array() | |
$authenticated = false |
Additional Inherited Members | |
![]() | |
authenticate () | |
makeSignedRequest ($url, $options=array(), $parseJson=true) |
Definition at line 18 of file GoogleOAuthService.php.
|
protected |
Fetch attributes array.
Reimplemented from EAuthServiceBase.
Definition at line 33 of file GoogleOAuthService.php.
References EOAuth2Service\makeSignedRequest().
|
protected |
Returns the error info from json.
stdClass | $json | the json response. |
Reimplemented from EAuthServiceBase.
Definition at line 104 of file GoogleOAuthService.php.
|
protected |
Returns the OAuth2 access token.
string | $code | the OAuth2 code. See getCodeUrl. |
Reimplemented from EOAuth2Service.
Definition at line 66 of file GoogleOAuthService.php.
References EAuthServiceBase\getState(), getTokenUrl(), and makeRequest().
|
protected |
Returns the url to request to get OAuth2 code.
string | $redirect_uri | url to redirect after user confirmation. |
Reimplemented from EOAuth2Service.
Definition at line 54 of file GoogleOAuthService.php.
References EAuthServiceBase\setState().
|
protected |
Returns the url to request to get OAuth2 access token.
Reimplemented from EOAuth2Service.
Definition at line 62 of file GoogleOAuthService.php.
Referenced by getAccessToken().
|
protected |
Makes the curl request to the url.
string | $url | url to request. |
array | $options | HTTP request options. Keys: query, data, referer. |
boolean | $parseJson | Whether to parse response in json format. |
Reimplemented from EAuthServiceBase.
Definition at line 94 of file GoogleOAuthService.php.
Referenced by getAccessToken().
|
protected |
Save access token to the session.
stdClass | $token | access token array. |
Reimplemented from EOAuth2Service.
Definition at line 81 of file GoogleOAuthService.php.
References EAuthServiceBase\setState().
|
protected |
Definition at line 28 of file GoogleOAuthService.php.