diff options
author | git-marijus <mario@mariovavti.com> | 2018-02-19 11:11:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 11:11:08 +0100 |
commit | b56633e1d6d36de4a65ef07f9ee64a9e98a79c2b (patch) | |
tree | c95ee004310142f222289e3ef8b52552e1c0a083 /Zotlabs/Module/Token.php | |
parent | 1732ffed7a3a9c1ab8811baef3a36f70a64bce7a (diff) | |
parent | 4a5d1076eda66f4d562219468b84dff2bd8de86b (diff) | |
download | volse-hubzilla-b56633e1d6d36de4a65ef07f9ee64a9e98a79c2b.tar.gz volse-hubzilla-b56633e1d6d36de4a65ef07f9ee64a9e98a79c2b.tar.bz2 volse-hubzilla-b56633e1d6d36de4a65ef07f9ee64a9e98a79c2b.zip |
Merge pull request #980 from dawnbreak/dev
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 +} |