Enumerations | |
| enum | OAUTH2_CLIENT_ID_REGEXP |
Functions | |
| checkClientCredentials ($client_id, $client_secret=NULL) | |
| getClientCredentials () | |
When interacting with the authorization server, the client identifies itself using a client identifier and authenticates using a set of client credentials. This specification provides one mechanism for authenticating the client using password credentials.
Regex to filter out the client identifier (described in Section 2 of IETF draft).
IETF draft does not prescribe a format for these, however I've arbitrarily chosen alphanumeric strings with hyphens and underscores, 3-32 characters long.
Feel free to change.
Definition at line 67 of file OAuth2.inc.
| checkClientCredentials | ( | $ | client_id, | |
| $ | client_secret = NULL | |||
| ) | [abstract, protected, inherited] |
Make sure that the client credentials is valid.
| $client_id | Client identifier to be check with. | |
| $client_secret | (optional) If a secret is required, check that they've given the right one. |
Reimplemented in MongoOAuth2, and PDOOAuth2.
Referenced by OAuth2::grantAccessToken().
| getClientCredentials | ( | ) | [protected, inherited] |
Internal function used to get the client credentials from HTTP basic auth or POST data.
return array( $_POST["client_id"], $_POST["client_secret"], );
Definition at line 1107 of file OAuth2.inc.
References OAuth2::errorJsonResponse().
Referenced by OAuth2::grantAccessToken().
1.7.1