Compare commits

...

12 Commits
1.0.3 ... 1.0.5

Author SHA1 Message Date
Alex Bilbie
e04e6d2fae Merge branch 'release/1.0.5' 2013-02-21 17:51:59 +00:00
Alex Bilbie
e555f67c8d v1.0.5 2013-02-21 17:51:51 +00:00
Alex Bilbie
822669fc0c Update getScopes 2013-02-21 17:51:01 +00:00
Alex Bilbie
828bc299b2 Merge branch 'develop' of github.com:lncd/OAuth2 into develop 2013-02-21 17:45:27 +00:00
Alex Bilbie
d22e489626 Merge branch 'release/1.0.4' into develop 2013-02-21 17:44:42 +00:00
Alex Bilbie
ab8bc44849 Merge branch 'release/1.0.4' 2013-02-21 17:44:33 +00:00
Alex Bilbie
4f832e1eb1 Version bump 2013-02-21 17:44:26 +00:00
Alex Bilbie
9add9edcc1 Merge branch 'hotfix/doc-fix' into develop 2013-02-21 17:42:55 +00:00
Alex Bilbie
59e23fb32a Merge branch 'hotfix/doc-fix' 2013-02-21 17:42:45 +00:00
Alex Bilbie
22dcef33da Fixed SQL to get a session\'s scopes 2013-02-21 17:42:30 +00:00
Alex Bilbie
866c598809 Merge branch 'release/1.0.3' into develop 2013-02-20 13:17:48 +00:00
Alex Bilbie
6b2f5944ef Merge branch 'release/1.0.1' into develop 2013-02-19 00:42:49 +00:00
3 changed files with 15 additions and 13 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## 1.0.5 (released 2013-02-21)
* Fixed the SQL example for SessionInterface::getScopes()
## 1.0.3 (released 2013-02-20)
* Changed all instances of the "authentication server" to "authorization server"

View File

@@ -1,7 +1,7 @@
{
"name": "lncd/oauth2",
"description": "OAuth 2.0 Framework",
"version": "1.0.3",
"version": "1.0.5",
"homepage": "https://github.com/lncd/OAuth2",
"license": "MIT",
"require": {

View File

@@ -225,10 +225,9 @@ interface SessionInterface
* Example SQL query:
*
* <code>
* 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
* SELECT oauth_scopes.scope FROM oauth_session_scopes JOIN oauth_scopes ON
* oauth_session_scopes.scope_id = oauth_scopes.id WHERE
* session_id = $sessionId
* </code>
*
* Response:
@@ -236,17 +235,16 @@ interface SessionInterface
* <code>
* Array
* (
* [0] => Array
* (
* [scope] => (string) The scope
* [name] => (string) The scope's name
* [description] => (string) The scope's description
* )
* [0] => (string) The scope
* [1] => (string) The scope
* [2] => (string) The scope
* ...
* ...
* )
* </code>
*
* @param string $accessToken The access token
* @param int $sessionId The session ID
* @return array
*/
public function getScopes($accessToken);
public function getScopes($sessionId);
}