From 4b63c20a581a8425361680f359967df0e17b9c29 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 19 Feb 2013 00:26:28 +0000 Subject: [PATCH] Updated docblocks with correct SQL --- src/OAuth2/Storage/ClientInterface.php | 16 +++++++--------- src/OAuth2/Storage/ScopeInterface.php | 2 +- src/OAuth2/Storage/SessionInterface.php | 7 ++++--- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/OAuth2/Storage/ClientInterface.php b/src/OAuth2/Storage/ClientInterface.php index 605c42a9..408ff959 100644 --- a/src/OAuth2/Storage/ClientInterface.php +++ b/src/OAuth2/Storage/ClientInterface.php @@ -20,19 +20,17 @@ interface ClientInterface * * * # Client ID + redirect URI - * SELECT clients.id FROM clients LEFT JOIN client_endpoints ON - * client_endpoints.client_id = clients.id WHERE clients.id = $clientId AND - * client_endpoints.redirect_uri = $redirectUri + * SELECT oauth_clients.id FROM oauth_clients LEFT JOIN client_endpoints ON client_endpoints.client_id + * = oauth_clients.id WHERE oauth_clients.id = $clientId AND client_endpoints.redirect_uri = $redirectUri * * # Client ID + client secret - * SELECT clients.id FROM clients WHERE clients.id = $clientId AND - * clients.secret = $clientSecret + * SELECT oauth_clients.id FROM oauth_clients WHERE oauth_clients.id = $clientId AND + * oauth_clients.secret = $clientSecret * * # Client ID + client secret + redirect URI - * SELECT clients.id FROM clients LEFT JOIN client_endpoints ON - * client_endpoints.client_id = clients.id WHERE clients.id = $clientId AND - * clients.secret = $clientSecret AND client_endpoints.redirect_uri = - * $redirectUri + * SELECT oauth_clients.id FROM oauth_clients LEFT JOIN client_endpoints ON client_endpoints.client_id + * = oauth_clients.id WHERE oauth_clients.id = $clientId AND oauth_clients.secret = $clientSecret + * AND client_endpoints.redirect_uri = $redirectUri * * * Response: diff --git a/src/OAuth2/Storage/ScopeInterface.php b/src/OAuth2/Storage/ScopeInterface.php index 82c71c39..99c6689a 100644 --- a/src/OAuth2/Storage/ScopeInterface.php +++ b/src/OAuth2/Storage/ScopeInterface.php @@ -19,7 +19,7 @@ interface ScopeInterface * Example SQL query: * * - * SELECT * FROM scopes WHERE scope = $scope + * SELECT * FROM oauth_scopes WHERE scope = $scope * * * Response: diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index 1c2632f6..9878e822 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -225,9 +225,10 @@ interface SessionInterface * Example SQL query: * * - * SELECT scopes.scope, scopes.name, scopes.description FROM - * oauth_session_scopes JOIN scopes ON oauth_session_scopes.scope = - * scopes.scope WHERE access_token = $accessToken + * SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description + * FROM oauth_session_scopes JOIN oauth_scopes ON + * oauth_session_scopes.scope = oauth_scopes.scope + * WHERE access_token = $accessToken * * * Response: