aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Token.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2018-02-17 01:49:01 +0100
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2018-02-17 01:49:01 +0100
commit4a5d1076eda66f4d562219468b84dff2bd8de86b (patch)
treeb1b3cad6bcc69eca561c66ed28181dd93dbeb15a /Zotlabs/Module/Token.php
parent547ef772ab1bcdf9cff1ad6d0593f3d27bb33d73 (diff)
downloadvolse-hubzilla-4a5d1076eda66f4d562219468b84dff2bd8de86b.tar.gz
volse-hubzilla-4a5d1076eda66f4d562219468b84dff2bd8de86b.tar.bz2
volse-hubzilla-4a5d1076eda66f4d562219468b84dff2bd8de86b.zip
Refactor OAuth2Server a bit.
Diffstat (limited to 'Zotlabs/Module/Token.php')
-rw-r--r--Zotlabs/Module/Token.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Module/Token.php b/Zotlabs/Module/Token.php
index 5cde58895..f7c074233 100644
--- a/Zotlabs/Module/Token.php
+++ b/Zotlabs/Module/Token.php
@@ -2,6 +2,8 @@
namespace Zotlabs\Module;
+use Zotlabs\Identity\OAuth2Storage;
+
class Token extends \Zotlabs\Web\Controller {
@@ -26,11 +28,10 @@ class Token extends \Zotlabs\Web\Controller {
}
}
-
- $s = new \Zotlabs\Identity\OAuth2Server();
- $s->server->handleTokenRequest(\OAuth2\Request::createFromGlobals())->send();
+ $s = new \Zotlabs\Identity\OAuth2Server(new OAuth2Storage(\DBA::$dba->db));
+ $s->handleTokenRequest(\OAuth2\Request::createFromGlobals())->send();
killme();
}
-} \ No newline at end of file
+}