diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-25 08:36:40 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-25 08:36:40 -0500 |
commit | 70b8f3240f9bc38a41e314f613f6c1bd69f5b430 (patch) | |
tree | 6ab35eae42a157ead22aa4f507822c8f37164409 /Zotlabs/Module/Token.php | |
parent | 497ebca54f5eaa74a1e9c9e4c5183c5565ce09e8 (diff) | |
download | volse-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.php | 3 |
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(); } |