aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Oauthinfo.php
blob: f380cec972f771f362a353ba1212a31cc1adbf99 (plain) (tree)
1
2
3
4
5
6
7






                                                 





                                                                              

                                                                                       
                                                                                                                         

                  

                                          
 
<?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',
			'userinfo_endpoint'        => z_root() . '/userinfo',
			'scopes_supported'         => [ 'openid', 'profile', 'email' ],
			'response_types_supported' => [ 'code', 'token', 'id_token', 'code id_token', 'token id_token' ] 
		];

		json_return_and_die($ret);
	}
}