Fixes to OAuth2 connect-with-openid. Add zothash Claim. Add zotwebbie Claim.

This commit is contained in:
M.Dent
2018-08-09 22:35:12 -04:00
parent 7890157f52
commit 0b31c677f2
5 changed files with 81 additions and 12 deletions

View File

@@ -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();
}