diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
commit | 5cc7f96262509b2a5d43fa6fbb6cd083064385be (patch) | |
tree | c2de1ca30876063882cbbb0818d1d618cc6da4c4 /mod/openid_server/views/xrds | |
parent | 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f (diff) | |
parent | b6c722ac63d250972fea066b30e58026d00ab3e2 (diff) | |
download | elgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.gz elgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.bz2 |
Add 'mod/openid_server/' from commit 'b6c722ac63d250972fea066b30e58026d00ab3e2'
git-subtree-dir: mod/openid_server
git-subtree-mainline: 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f
git-subtree-split: b6c722ac63d250972fea066b30e58026d00ab3e2
Diffstat (limited to 'mod/openid_server/views/xrds')
-rw-r--r-- | mod/openid_server/views/xrds/openid_server/profile.php | 11 | ||||
-rw-r--r-- | mod/openid_server/views/xrds/openid_server/service.php | 15 |
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> + |