Public Member Functions | |
| getVariable ($name, $default=NULL) | |
| setVariable ($name, $value) | |
| __construct ($config=array()) | |
| verifyAccessToken ($scope=NULL, $exit_not_present=TRUE, $exit_invalid=TRUE, $exit_expired=TRUE, $exit_scope=TRUE, $realm=NULL) | |
| grantAccessToken () | |
| getAuthorizeParams () | |
| finishClientAuthorization ($is_authorized, $params=array()) | |
Protected Member Functions | |
| checkClientCredentials ($client_id, $client_secret=NULL) | |
| getRedirectUri ($client_id) | |
| getAccessToken ($oauth_token) | |
| setAccessToken ($oauth_token, $client_id, $expires, $scope=NULL) | |
| getSupportedGrantTypes () | |
| getSupportedAuthResponseTypes () | |
| getSupportedScopes () | |
| checkRestrictedAuthResponseType ($client_id, $response_type) | |
| checkRestrictedGrantType ($client_id, $grant_type) | |
| getAuthCode ($code) | |
| setAuthCode ($code, $client_id, $redirect_uri, $expires, $scope=NULL) | |
| checkUserCredentials ($client_id, $username, $password) | |
| checkAssertion ($client_id, $assertion_type, $assertion) | |
| getRefreshToken ($refresh_token) | |
| setRefreshToken ($refresh_token, $client_id, $expires, $scope=NULL) | |
| unsetRefreshToken ($refresh_token) | |
| checkNoneAccess ($client_id) | |
| getDefaultAuthenticationRealm () | |
| getClientCredentials () | |
| createAccessToken ($client_id, $scope=NULL) | |
| genAccessToken () | |
| genAuthCode () | |
Protected Attributes | |
| $conf = array() | |
Private Member Functions | |
| checkScope ($required_scope, $available_scope) | |
| getAccessTokenParams () | |
| doRedirectUriCallback ($redirect_uri, $params) | |
| buildUri ($uri, $params) | |
| createAuthCode ($client_id, $redirect_uri, $scope=NULL) | |
| getAuthorizationHeader () | |
| sendJsonHeaders () | |
| errorDoRedirectUriCallback ($redirect_uri, $error, $error_description=NULL, $error_uri=NULL, $state=NULL) | |
| errorJsonResponse ($http_status_code, $error, $error_description=NULL, $error_uri=NULL) | |
| errorWWWAuthenticateResponseHeader ($http_status_code, $realm, $error, $error_description=NULL, $error_uri=NULL, $scope=NULL) | |
OAuth2.0 draft v10 server-side implementation.
Definition at line 354 of file OAuth2.inc.
| __construct | ( | $ | config = array() |
) |
Creates an OAuth2.0 server-side instance.
| $config | An associative array as below:
|
Definition at line 834 of file OAuth2.inc.
References setVariable().
| getVariable | ( | $ | name, | |
| $ | default = NULL | |||
| ) |
Returns a persistent variable.
To avoid problems, always use lower case for persistent variable names.
| $name | The name of the variable to return. | |
| $default | The default value to use if this variable has never been set. |
Definition at line 374 of file OAuth2.inc.
Referenced by createAccessToken(), createAuthCode(), errorDoRedirectUriCallback(), errorJsonResponse(), and errorWWWAuthenticateResponseHeader().
| setVariable | ( | $ | name, | |
| $ | value | |||
| ) |
Sets a persistent variable.
To avoid problems, always use lower case for persistent variable names.
| $name | The name of the variable to set. | |
| $value | The value to set. |
Definition at line 388 of file OAuth2.inc.
Referenced by __construct(), and grantAccessToken().
$conf = array() [protected] |
Array of persistent variables stored.
Definition at line 359 of file OAuth2.inc.
1.7.1