Public Member Functions | |
init ($component, $options=array()) | |
authenticate () | |
makeSignedRequest ($url, $options=array(), $parseJson=true) | |
![]() | |
__get ($name) | |
__isset ($name) | |
getServiceName () | |
getServiceTitle () | |
getServiceType () | |
getJsArguments () | |
setComponent ($component) | |
getComponent () | |
setRedirectUrl ($url) | |
getRedirectUrl () | |
setCancelUrl ($url) | |
getCancelUrl () | |
getIsAuthenticated () | |
redirect ($url=null) | |
cancel ($url=null) | |
getId () | |
getAttributes () | |
getAttribute ($key, $default=null) | |
hasAttribute ($key) | |
getItem () | |
getItemAttributes () | |
![]() | |
cancel () |
Protected Member Functions | |
getConsumer () | |
getAccessToken () | |
initRequest ($url, $options=array()) | |
![]() | |
makeRequest ($url, $options=array(), $parseJson=true) | |
parseJson ($response) | |
fetchJsonError ($json) | |
getStateKeyPrefix () | |
setState ($key, $value, $defaultValue=null) | |
hasState ($key) | |
getState ($key, $defaultValue=null) | |
fetchAttributes () | |
_fetchAttributes () |
Protected Attributes | |
$key | |
$secret | |
$scope = '' | |
$providerOptions | |
![]() | |
$name | |
$title | |
$type | |
$jsArguments = array() | |
$attributes = array() | |
$authenticated = false |
Definition at line 16 of file EOAuthService.php.
EOAuthService::authenticate | ( | ) |
Authenticate the user.
Reimplemented from EAuthServiceBase.
Reimplemented in TwitterOAuthService.
Definition at line 69 of file EOAuthService.php.
References EAuthServiceBase\getIsAuthenticated().
|
protected |
Returns the OAuth access token.
Definition at line 86 of file EOAuthService.php.
Referenced by makeSignedRequest().
|
protected |
Returns the OAuth consumer.
Definition at line 78 of file EOAuthService.php.
Referenced by makeSignedRequest().
EOAuthService::init | ( | $component, | |
$options = array() |
|||
) |
Initialize the component.
EAuth | $component | the component instance. |
array | $options | properties initialization. |
Reimplemented from EAuthServiceBase.
Definition at line 54 of file EOAuthService.php.
|
protected |
Initializes a new session and return a cURL handle.
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 97 of file EOAuthService.php.
EOAuthService::makeSignedRequest | ( | $url, | |
$options = array() , |
|||
$parseJson = true |
|||
) |
Returns the protected resource.
string | $url | url to request. |
array | $options | HTTP request options. Keys: query, data, referer. |
boolean | $parseJson | Whether to parse response in json format. |
Definition at line 114 of file EOAuthService.php.
References getAccessToken(), getConsumer(), EAuthServiceBase\getIsAuthenticated(), and EAuthServiceBase\makeRequest().
Referenced by CustomTwitterService\fetchAttributes(), and TwitterOAuthService\fetchAttributes().
|
protected |
Definition at line 42 of file EOAuthService.php.