diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-26 17:15:36 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-26 17:15:36 +0200 |
commit | ff7fc68382bf1359adc31bd65bb6786b7f63e31a (patch) | |
tree | 1ab031d66e2f281df964f81ad98c2fbe571162f2 /include | |
parent | b06588ffa1c925d0a008a34bf8fa5c316b964b87 (diff) | |
download | volse-hubzilla-ff7fc68382bf1359adc31bd65bb6786b7f63e31a.tar.gz volse-hubzilla-ff7fc68382bf1359adc31bd65bb6786b7f63e31a.tar.bz2 volse-hubzilla-ff7fc68382bf1359adc31bd65bb6786b7f63e31a.zip |
oauthapi: authorize app
Diffstat (limited to 'include')
-rw-r--r-- | include/api.php | 5 | ||||
-rw-r--r-- | include/oauth.php | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/api.php b/include/api.php index 252caeb8e..2de965681 100644 --- a/include/api.php +++ b/include/api.php @@ -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); + diff --git a/include/oauth.php b/include/oauth.php index 63d5fcd92..506172491 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -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()); } } |