aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/api.php5
-rw-r--r--include/oauth.php1
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());
}
}