1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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(); } }