aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Token.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-02-25 08:36:40 -0500
committerAndrew Manning <tamanning@zoho.com>2018-02-25 08:36:40 -0500
commit70b8f3240f9bc38a41e314f613f6c1bd69f5b430 (patch)
tree6ab35eae42a157ead22aa4f507822c8f37164409 /Zotlabs/Module/Token.php
parent497ebca54f5eaa74a1e9c9e4c5183c5565ce09e8 (diff)
downloadvolse-hubzilla-70b8f3240f9bc38a41e314f613f6c1bd69f5b430.tar.gz
volse-hubzilla-70b8f3240f9bc38a41e314f613f6c1bd69f5b430.tar.bz2
volse-hubzilla-70b8f3240f9bc38a41e314f613f6c1bd69f5b430.zip
An authorization token is received, but I had to modify the Request class in vendor/bshaffer/oauth2-server-php/ to accept $_REQUEST instead of $_POST.
Diffstat (limited to 'Zotlabs/Module/Token.php')
-rw-r--r--Zotlabs/Module/Token.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Token.php b/Zotlabs/Module/Token.php
index f7c074233..32cf95c61 100644
--- a/Zotlabs/Module/Token.php
+++ b/Zotlabs/Module/Token.php
@@ -29,7 +29,8 @@ class Token extends \Zotlabs\Web\Controller {
}
$s = new \Zotlabs\Identity\OAuth2Server(new OAuth2Storage(\DBA::$dba->db));
- $s->handleTokenRequest(\OAuth2\Request::createFromGlobals())->send();
+ $request = \OAuth2\Request::createFromGlobals();
+ $s->handleTokenRequest($request)->send();
killme();
}