Use hruid as openid identifier
[platal.git] / templates / openid / user_xrds.tpl
index 44c03a9..eff0fc4 100644 (file)
@@ -1,12 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xrds:XRDS
     xmlns:xrds="xri://$xrds"
-    xmlns="xri://$xrd*($v*2.0)">
+    xmlns="xri://$xrd*($v*2.0)"
+    xmlns:openid="http://openid.net/xmlns/1.0">
   <XRD>
-    <Service priority="0">
+    <Service priority="10">
       <Type>{$type2}</Type>
+      <URI>{$provider}</URI>
+      <LocalID>{$local_id}</LocalID>
+    </Service>
+    <Service priority="20">
       <Type>{$type1}</Type>
-      <URI>{$uri}</URI>
+      <URI>{$provider}</URI>
+      <openid:Delegate>{$local_id}</openid:Delegate>
     </Service>
   </XRD>
-</xrds:XRDS>
\ No newline at end of file
+</xrds:XRDS>