aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-10-26 17:15:36 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-10-26 17:15:36 +0200
commitff7fc68382bf1359adc31bd65bb6786b7f63e31a (patch)
tree1ab031d66e2f281df964f81ad98c2fbe571162f2 /include
parentb06588ffa1c925d0a008a34bf8fa5c316b964b87 (diff)
downloadvolse-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.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());
}
}