aboutsummaryrefslogtreecommitdiff
path: root/mod/openid_server/views/xrds
diff options
context:
space:
mode:
Diffstat (limited to 'mod/openid_server/views/xrds')
-rw-r--r--mod/openid_server/views/xrds/openid_server/profile.php11
-rw-r--r--mod/openid_server/views/xrds/openid_server/service.php15
2 files changed, 26 insertions, 0 deletions
diff --git a/mod/openid_server/views/xrds/openid_server/profile.php b/mod/openid_server/views/xrds/openid_server/profile.php
new file mode 100644
index 000000000..9b34a6b7b
--- /dev/null
+++ b/mod/openid_server/views/xrds/openid_server/profile.php
@@ -0,0 +1,11 @@
+<?php
+ /*
+ XRDS info to validate delegated identities
+ */
+ $user = elgg_get_page_owner_entity();
+?>
+ <Service priority="0">
+ <Type>http://specs.openid.net/auth/2.0/signon</Type>
+ <LocalID><?php echo $vars['url']; ?>mod/openid_server/server.php</LocalID>
+ <URI><?php echo $vars['url']; ?>mod/openid_server/server.php</URI>
+ </Service>
diff --git a/mod/openid_server/views/xrds/openid_server/service.php b/mod/openid_server/views/xrds/openid_server/service.php
new file mode 100644
index 000000000..269df5c2e
--- /dev/null
+++ b/mod/openid_server/views/xrds/openid_server/service.php
@@ -0,0 +1,15 @@
+<?php
+ /*
+ XRD info to identify do eaut email to profile mapping
+ and identify openid 2.0 server.
+ */
+?>
+ <Service priority="0">
+ <Type>http://specs.eaut.org/1.0/template</Type>
+ <URI><?php echo $vars['url']; ?>profile/%7Busername%7D</URI>
+ </Service>
+ <Service priority="10">
+ <Type>http://specs.openid.net/auth/2.0/server</Type>
+ <URI><?php echo $vars['url']; ?>mod/openid_server/server.php</URI>
+ </Service>
+