Updated docblocks with correct SQL

This commit is contained in:
Alex Bilbie 2013-02-19 00:26:28 +00:00
parent 333ce37c97
commit 4b63c20a58
3 changed files with 12 additions and 13 deletions

View File

@ -20,19 +20,17 @@ interface ClientInterface
* *
* <code> * <code>
* # Client ID + redirect URI * # Client ID + redirect URI
* SELECT clients.id FROM clients LEFT JOIN client_endpoints ON * SELECT oauth_clients.id FROM oauth_clients LEFT JOIN client_endpoints ON client_endpoints.client_id
* client_endpoints.client_id = clients.id WHERE clients.id = $clientId AND * = oauth_clients.id WHERE oauth_clients.id = $clientId AND client_endpoints.redirect_uri = $redirectUri
* client_endpoints.redirect_uri = $redirectUri
* *
* # Client ID + client secret * # Client ID + client secret
* SELECT clients.id FROM clients WHERE clients.id = $clientId AND * SELECT oauth_clients.id FROM oauth_clients WHERE oauth_clients.id = $clientId AND
* clients.secret = $clientSecret * oauth_clients.secret = $clientSecret
* *
* # Client ID + client secret + redirect URI * # Client ID + client secret + redirect URI
* SELECT clients.id FROM clients LEFT JOIN client_endpoints ON * SELECT oauth_clients.id FROM oauth_clients LEFT JOIN client_endpoints ON client_endpoints.client_id
* client_endpoints.client_id = clients.id WHERE clients.id = $clientId AND * = oauth_clients.id WHERE oauth_clients.id = $clientId AND oauth_clients.secret = $clientSecret
* clients.secret = $clientSecret AND client_endpoints.redirect_uri = * AND client_endpoints.redirect_uri = $redirectUri
* $redirectUri
* </code> * </code>
* *
* Response: * Response:

View File

@ -19,7 +19,7 @@ interface ScopeInterface
* Example SQL query: * Example SQL query:
* *
* <code> * <code>
* SELECT * FROM scopes WHERE scope = $scope * SELECT * FROM oauth_scopes WHERE scope = $scope
* </code> * </code>
* *
* Response: * Response:

View File

@ -225,9 +225,10 @@ interface SessionInterface
* Example SQL query: * Example SQL query:
* *
* <code> * <code>
* SELECT scopes.scope, scopes.name, scopes.description FROM * SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description
* oauth_session_scopes JOIN scopes ON oauth_session_scopes.scope = * FROM oauth_session_scopes JOIN oauth_scopes ON
* scopes.scope WHERE access_token = $accessToken * oauth_session_scopes.scope = oauth_scopes.scope
* WHERE access_token = $accessToken
* </code> * </code>
* *
* Response: * Response: