From 7bca63a18f7ef87d64a34887a29a6cdd6214cb39 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 5 Jul 2012 17:38:58 +0100 Subject: [PATCH] First commit --- composer.json | 33 ++++++++++++++++++++++++++++++++ src/oauth2server/AccessToken.php | 26 +++++++++++++++++++++++++ src/oauth2server/Client.php | 25 ++++++++++++++++++++++++ src/oauth2server/Scope.php | 16 ++++++++++++++++ src/oauth2server/Server.php | 18 +++++++++++++++++ src/oauth2server/db.php | 8 ++++++++ 6 files changed, 126 insertions(+) create mode 100644 composer.json create mode 100644 src/oauth2server/AccessToken.php create mode 100644 src/oauth2server/Client.php create mode 100644 src/oauth2server/Scope.php create mode 100644 src/oauth2server/Server.php create mode 100644 src/oauth2server/db.php diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..e2229628 --- /dev/null +++ b/composer.json @@ -0,0 +1,33 @@ +{ + "name": "lncd/oauth2server", + "description": "OAuth 2.0 server", + "version": "0.0.1", + "require": { + "php": ">=5.3.0", + }, + "repositories": [ + { + "type": "git", + "url": "https://github.com/lncd/oauth2server" + } + ], + "keywords": [ + "oauth", + "oauth2", + "server" + ], + "license": "MIT", + "authors": [ + { + "name": "Alex Bilbie", + "email": "php-oauth2-server@alexbilbie.com", + "homepage": "http://www.httpster.org", + "role": "Developer" + } + ], + "autoload": { + "psr-0": { + "oauth2server": "src/" + } + } +} \ No newline at end of file diff --git a/src/oauth2server/AccessToken.php b/src/oauth2server/AccessToken.php new file mode 100644 index 00000000..8fa8e144 --- /dev/null +++ b/src/oauth2server/AccessToken.php @@ -0,0 +1,26 @@ +