aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Oauthinfo.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-05-24 05:35:50 -0400
committerAndrew Manning <tamanning@zoho.com>2018-05-24 05:35:50 -0400
commitfc6b337bbbd2fd3b5412c8b957122830f73feb2d (patch)
treee8417e561ac7445a4018c0cf3bf722779493c430 /Zotlabs/Module/Oauthinfo.php
parent40d99c171678654817e392b7f59050dccce770a8 (diff)
parent9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b (diff)
downloadvolse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.tar.gz
volse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.tar.bz2
volse-hubzilla-fc6b337bbbd2fd3b5412c8b957122830f73feb2d.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'Zotlabs/Module/Oauthinfo.php')
-rw-r--r--Zotlabs/Module/Oauthinfo.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zotlabs/Module/Oauthinfo.php b/Zotlabs/Module/Oauthinfo.php
new file mode 100644
index 000000000..2d10913c4
--- /dev/null
+++ b/Zotlabs/Module/Oauthinfo.php
@@ -0,0 +1,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', 'token', 'id_token', 'code id_token', 'token id_token' ]
+ ];
+
+
+ json_return_and_die($ret);
+ }
+
+
+} \ No newline at end of file