mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 21:35:13 +00:00
18 lines
335 B
PHP
18 lines
335 B
PHP
|
<?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();
|
||
|
}
|
||
|
|
||
|
}
|