From 43d064733f28cc3be4cb20ed5fd1a102971c45e5 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 20 Feb 2013 12:40:42 +0000 Subject: [PATCH] Changed all mentions of authentication to authorization server --- CHANGELOG.md | 11 ++++++++++- README.md | 10 +++++----- build/phpunit.xml | 4 ++-- src/OAuth2/AuthServer.php | 6 +++--- .../AuthServerTest.php | 2 +- .../ClientCredentialsGrantTest.php | 0 .../PasswordGrantTest.php | 0 .../RefreshTokenTest.php | 0 8 files changed, 21 insertions(+), 12 deletions(-) rename tests/{authentication => authorization}/AuthServerTest.php (99%) rename tests/{authentication => authorization}/ClientCredentialsGrantTest.php (100%) rename tests/{authentication => authorization}/PasswordGrantTest.php (100%) rename tests/{authentication => authorization}/RefreshTokenTest.php (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cceea32..e8c176c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog -## 1.0.0 (released 2012-02-15) +## 1.0.2 (released 2013-02-20) + +* Fixed MySQL create table order +* Fixed version number in composer.json + +## 1.0.1 (released 2013-02-19) + +* Updated AuthServer.php to use `self::getParam()` + +## 1.0.0 (released 2013-02-15) * First release \ No newline at end of file diff --git a/README.md b/README.md index 5c2a5fd6..663a6608 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PHP OAuth Framework -The goal of this project is to develop a standards compliant [OAuth 2](http://tools.ietf.org/wg/oauth/draft-ietf-oauth-v2/) authentication server and resource server. +The goal of this project is to develop a standards compliant [OAuth 2](http://tools.ietf.org/wg/oauth/draft-ietf-oauth-v2/) authorization server and resource server. ## Package Installation @@ -20,11 +20,11 @@ The library features 100% unit test code coverage. To run the tests yourself run ## Current Features -### Authentication Server +### Authorization Server -The authentication server is a flexible class and following core specification grants are implemented: +The authorization server is a flexible class and following core specification grants are implemented: -* authentication code ([section 4.1](http://tools.ietf.org/html/rfc6749#section-4.1)) +* authorization code ([section 4.1](http://tools.ietf.org/html/rfc6749#section-4.1)) * refresh token ([section 6](http://tools.ietf.org/html/rfc6749#section-6)) * client credentials ([section 2.3.1](http://tools.ietf.org/html/rfc6749#section-2.3.1)) * password (user credentials) ([section 4.3](http://tools.ietf.org/html/rfc6749#section-4.3)) @@ -35,7 +35,7 @@ The resource server allows you to secure your API endpoints by checking for a va ## Future Goals -### Authentication Server +### Authorization Server * Support for [JSON web tokens](http://tools.ietf.org/wg/oauth/draft-ietf-oauth-json-web-token/). * Support for [SAML assertions](http://tools.ietf.org/wg/oauth/draft-ietf-oauth-saml2-bearer/). diff --git a/build/phpunit.xml b/build/phpunit.xml index 5b44b45c..3281974b 100644 --- a/build/phpunit.xml +++ b/build/phpunit.xml @@ -1,8 +1,8 @@ - - ../tests/authentication + + ../tests/authorization ../tests/resource diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index 069de718..927ecea9 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -1,6 +1,6 @@ @@ -19,7 +19,7 @@ use OAuth2\Storage\ScopeInterface; use OAuth2\Grant\GrantTypeInterface; /** - * OAuth 2.0 authentication server class + * OAuth 2.0 authorization server class */ class AuthServer { @@ -122,7 +122,7 @@ class AuthServer } /** - * Create a new OAuth2 authentication server + * Create a new OAuth2 authorization server * * @param ClientInterface $client A class which inherits from Storage/ClientInterface * @param SessionInterface $session A class which inherits from Storage/SessionInterface diff --git a/tests/authentication/AuthServerTest.php b/tests/authorization/AuthServerTest.php similarity index 99% rename from tests/authentication/AuthServerTest.php rename to tests/authorization/AuthServerTest.php index f9cbf412..13b533c0 100644 --- a/tests/authentication/AuthServerTest.php +++ b/tests/authorization/AuthServerTest.php @@ -2,7 +2,7 @@ use \Mockery as m; -class Authentication_Server_test extends PHPUnit_Framework_TestCase +class Authorization_Server_test extends PHPUnit_Framework_TestCase { private $client; private $session; diff --git a/tests/authentication/ClientCredentialsGrantTest.php b/tests/authorization/ClientCredentialsGrantTest.php similarity index 100% rename from tests/authentication/ClientCredentialsGrantTest.php rename to tests/authorization/ClientCredentialsGrantTest.php diff --git a/tests/authentication/PasswordGrantTest.php b/tests/authorization/PasswordGrantTest.php similarity index 100% rename from tests/authentication/PasswordGrantTest.php rename to tests/authorization/PasswordGrantTest.php diff --git a/tests/authentication/RefreshTokenTest.php b/tests/authorization/RefreshTokenTest.php similarity index 100% rename from tests/authentication/RefreshTokenTest.php rename to tests/authorization/RefreshTokenTest.php