aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Userinfo.php
blob: 6c881f078999f9b16ce06369b909624ce2d3f4e7 (plain) (blame)
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();
	}

}