[OpenID] XRDS documents

Martin Foster martin at ethereal-realms.org
Thu Apr 5 00:51:28 UTC 2007


I've just finished writing a consumer/identity provider that support the 
1.x protocol of OpenID.   Of course, because of the imminent arrival of 
2.0 it rather becomes a good idea to get that going.

One of the key changes to OpenID seems to be the use of XRDS documents 
and YADIS.   When I looked over at the YADIS 1.0 documentation I saw 
examples of the document produced looking something like this:

<Service xmlns:openid="http://openid.net/xmlns/1.0">
   <Type>http://openid.net/signon/1.0</Type>
   <URI>http://myid.example.com/openid</URI>
   <openid:Delegate>http://john.example.net/openid/</openid:Delegate>
</Service>

   AND

<Service priority="10">
   <Type>http://openid.net/signon/1.0</Type>
   <URI>http://www.myopenid.com/server</URI>
   <openid:Delegate>http://smoker.myopenid.com/</openid:Delegate>
</Service>

Meanwhile the OpenID 2.0 Implementors Guide lists an example as:

<Service xmlns="xri://$xrd*($v*2.0)">
   <Type>http://specs.openid.net/auth/2.0/signon</Type>
   <URI>https://www.exampleprovider.com/endpoint/</URI>
   <LocalID>https://exampleuser.exampleprovider.com/</LocalID>
</Service>

Which seems to be different, in fact all of them have ever so slight 
variations on one another which leads me to wonder how exactly to handle 
this.   Can anyone push me in the right direction?

	Martin Foster
	Creator/Designer Ethereal Realms
	martin at ethereal-realms.org



More information about the general mailing list