aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Token.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-08-12 14:03:36 +0200
committerMario <mario@mariovavti.com>2018-08-12 14:03:36 +0200
commit26f51ece9081e3994fd591906b5ccc608cfbf709 (patch)
tree2301c291a1d673bab9e42912c1c15efe7d0db07b /Zotlabs/Module/Token.php
parent5ff0f09a4509955dede91fdb38711e1c389c9ae4 (diff)
parent0b31c677f253907ee9a36e12ae51763b2d69a574 (diff)
downloadvolse-hubzilla-26f51ece9081e3994fd591906b5ccc608cfbf709.tar.gz
volse-hubzilla-26f51ece9081e3994fd591906b5ccc608cfbf709.tar.bz2
volse-hubzilla-26f51ece9081e3994fd591906b5ccc608cfbf709.zip
Merge branch 'oauth2' into 'dev'
Fixes to OAuth2 connect-with-openid. Add zothash Claim. Add zotwebbie Claim. See merge request hubzilla/core!1254
Diffstat (limited to 'Zotlabs/Module/Token.php')
-rw-r--r--Zotlabs/Module/Token.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Token.php b/Zotlabs/Module/Token.php
index 32cf95c61..2bd33c761 100644
--- a/Zotlabs/Module/Token.php
+++ b/Zotlabs/Module/Token.php
@@ -27,11 +27,11 @@ class Token extends \Zotlabs\Web\Controller {
$_SERVER['PHP_AUTH_PW'] = $password;
}
}
-
- $s = new \Zotlabs\Identity\OAuth2Server(new OAuth2Storage(\DBA::$dba->db));
+ $storage = new OAuth2Storage(\DBA::$dba->db);
+ $s = new \Zotlabs\Identity\OAuth2Server($storage);
$request = \OAuth2\Request::createFromGlobals();
- $s->handleTokenRequest($request)->send();
-
+ $response = $s->handleTokenRequest($request);
+ $response->send();
killme();
}