Permalink
Browse files

Starting work on package. WIP.

Signed-off-by: Ben Corlett <bencorlett@me.com>
  • Loading branch information...
1 parent 0d7f3d0 commit c39796527f837d7567b677d7234eb5b6fc8fd691 @bencorlett bencorlett committed Jul 17, 2013
View
@@ -0,0 +1,3 @@
+/vendor
+/composer.lock
+.DS_Store
View
@@ -1,4 +1,54 @@
oauth1
======
-OAuth 1 Client
+OAuth 1 Client is an OAuth [RFC 5849 standards-compliant](http://tools.ietf.org/html/rfc5849) library for authenticating against OAuth 1 servers.
+
+
+#### Terminology (as per specification):
+
+ client
+ An HTTP client (per [RFC2616]) capable of making OAuth-
+ authenticated requests (Section 3).
+
+ server
+ An HTTP server (per [RFC2616]) capable of accepting OAuth-
+ authenticated requests (Section 3).
+
+ protected resource
+ An access-restricted resource that can be obtained from the
+ server using an OAuth-authenticated request (Section 3).
+
+ resource owner
+ An entity capable of accessing and controlling protected
+ resources by using credentials to authenticate with the server.
+
+ credentials
+ Credentials are a pair of a unique identifier and a matching
+ shared secret. OAuth defines three classes of credentials:
+ client, temporary, and token, used to identify and authenticate
+ the client making the request, the authorization request, and
+ the access grant, respectively.
+
+ token
+ A unique identifier issued by the server and used by the client
+ to associate authenticated requests with the resource owner
+ whose authorization is requested or has been obtained by the
+ client. Tokens have a matching shared-secret that is used by
+ the client to establish its ownership of the token, and its
+ authority to represent the resource owner.
+
+ The original community specification used a somewhat different
+ terminology that maps to this specifications as follows (original
+ community terms provided on left):
+
+ Consumer: client
+
+ Service Provider: server
+
+ User: resource owner
+
+ Consumer Key and Secret: client credentials
+
+ Request Token and Secret: temporary credentials
+
+ Access Token and Secret: token credentials
View
@@ -0,0 +1,39 @@
+{
+ "name": "league/oauth1-client",
+ "description": "OAuth 1.0 Client Library",
+ "version": "0.1",
+ "homepage": "https://github.com/php-loep/oauth1-client",
+ "license": "MIT",
+ "require": {
+ "php": ">=5.3.0",
+ "guzzle/guzzle": "*",
+ "symfony/http-foundation": "2.3.*"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "*",
+ "fzaninotto/faker": "*"
+ },
+ "keywords": [
+ "oauth",
+ "oauth1",
+ "authorization",
+ "authentication",
+ "idp",
+ "identity",
+ "sso",
+ "single sign on"
+ ],
+ "authors": [
+ {
+ "name": "Ben Corlett",
+ "email": "bencorlett@me.com",
+ "homepage": "http://www.webcomm.com.au",
+ "role": "Developer"
+ }
+ ],
+ "autoload": {
+ "psr-0": {
+ "League\\OAuth1\\Client": "src/"
+ }
+ }
+}
View
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit colors="true"
+ stopOnFailure="false"
+ bootstrap="./vendor/autoload.php"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true">
+ <testsuites>
+ <testsuite name="common">
+ <directory suffix="Test.php">tests</directory>
+ </testsuite>
+ </testsuites>
+ <filter>
+ <whitelist>
+ <directory suffix=".php">./src/</directory>
+ </whitelist>
+ </filter>
+</phpunit>
Oops, something went wrong.

0 comments on commit c397965

Please sign in to comment.