summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/server/lib/render/idpXrds.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/server/lib/render/idpXrds.php b/examples/server/lib/render/idpXrds.php
index 99c363c..bea407c 100644
--- a/examples/server/lib/render/idpXrds.php
+++ b/examples/server/lib/render/idpXrds.php
@@ -3,13 +3,16 @@
require_once "lib/session.php";
require_once "lib/render.php";
+require_once "Auth/OpenID/Discover.php";
+
define('xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority="0">
- <Type>http://specs.openid.net/auth/2.0/server</Type>
+ <Type>%s</Type>
+ <Type>%s</Type>
<URI>%s</URI>
</Service>
</XRD>
@@ -20,7 +23,10 @@ function idpXrds_render()
{
$headers = array('Content-type: application/xrds+xml');
- $body = sprintf(xrds_pat, buildURL());
+ $body = sprintf(xrds_pat,
+ Auth_OpenID_TYPE_2_0,
+ Auth_OpenID_TYPE_1_1,
+ buildURL());
return array($headers, $body);
}