oauthapi: authorize app

This commit is contained in:
Fabio Comuni 2011-10-26 17:15:36 +02:00
commit ff7fc68382
5 changed files with 125 additions and 8 deletions

View file

@ -1158,9 +1158,8 @@
echo "oauth_token=".$r->key."&oauth_secret=".$r->secret;
killme();
}
function api_oauth_authorize(&$a, $type){
}
api_register_func('api/oauth/request_token', 'api_oauth_request_token', false);
api_register_func('api/oauth/access_token', 'api_oauth_access_token', false);
api_register_func('api/oauth/authorize', 'api_oauth_authorize', false);

View file

@ -101,6 +101,7 @@ class FKOAuth1 extends OAuthServer {
function __construct() {
parent::__construct(new FKOAuthDataStore());
$this->add_signature_method(new OAuthSignatureMethod_PLAINTEXT());
$this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
}
}