OAuth 1.0a and 2 support

This commit is contained in:
Evan Seguin
2012-10-02 15:59:55 -07:00
parent 0e6e912176
commit 33ba91700b
11 changed files with 125 additions and 16 deletions

View File

@@ -41,6 +41,16 @@ define("EXCEPTION_CONTENT_TYPE_JSON_QUERYAUTH_CODE", 1006);
define("EXCEPTION_CONTENT_TYPE_JSON_QUERYAUTH",
"Query Authentication cannot be used in conjunction with content type JSON");
define("EXCEPTION_OAUTH1_AUTHORIZE_CODE", 1007);
define("EXCEPTION_OAUTH1_AUTHORIZE",
"Before consuming an OAuth endpoint, you must invoke the authorize("
."'access_token', 'access_secret') function with non-null values");
define("EXCEPTION_OAUTH2_AUTHORIZE_CODE", 1007);
define("EXCEPTION_OAUTH2_AUTHORIZE",
"Before consuming an OAuth endpoint, you must invoke the authorize("
."'access_token') function with a non-null value");
define("EXCEPTION_NOTSUPPORTED_CONTENTTYPE_CODE", 415);
define("EXCEPTION_NOTSUPPORTED_CONTENTTYPE",
"Content Type not supported. Currently only application/x-www-form-urlencoded, "