aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Oauthinfo.php
blob: 6eea2e02b13fa5e94bb41cf2489b48cccea61258 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Zotlabs\Module;


class Oauthinfo extends \Zotlabs\Web\Controller {


	function init() {

		$ret = [
			'issuer'                   => z_root(),
			'authorization_endpoint'   => z_root() . '/authorize',
			'token_endpoint'           => z_root() . '/token',
			'response_types_supported' => [ 'code', 'code token' ] 
		];


		json_return_and_die($ret);
	}


}