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

@@ -0,0 +1,17 @@
<?php
namespace Zotlabs\Module;
use Zotlabs\Identity\OAuth2Storage;
class Userinfo extends \Zotlabs\Web\Controller {
function init() {
$s = new \Zotlabs\Identity\OAuth2Server(new OAuth2Storage(\DBA::$dba->db));
$request = \OAuth2\Request::createFromGlobals();
$s->handleUserInfoRequest($request)->send();
killme();
}
}