diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2018-02-17 01:49:01 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2018-02-17 01:49:01 +0100 |
commit | 4a5d1076eda66f4d562219468b84dff2bd8de86b (patch) | |
tree | b1b3cad6bcc69eca561c66ed28181dd93dbeb15a /Zotlabs/Module/Token.php | |
parent | 547ef772ab1bcdf9cff1ad6d0593f3d27bb33d73 (diff) | |
download | volse-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.php | 9 |
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 +} |