XRDS
The extensible resource descriptor sequence is an XML-based file format that provides a list of services.
Background
The XML format used by XRDS was originally developed in 2004 by the OASIS XRI Technical Committee as the resolution format for XRIs. The acronym XRDS was coined during subsequent discussions between XRI TC members and OpenID developers at the first Internet Identity Workshop held in Berkeley, California in October 2005.The protocol for discovering an XRDS document from a URL was formalized as the Yadis specification published by Yadis.org in March 2006. Yadis became the service discovery format for OpenID 1.1.
A common discovery service for both URLs and XRIs proved so useful that in November 2007 the XRI Resolution 2.0 specification formally added the URL-based method of XRDS discovery. This format and discovery protocol subsequently became part of OpenID Authentication 2.0.
XRDS Simple
In early 2008, work on OAuth discovery by Eran Hammer-Lahav led to the development of XRDS Simple, a profile of XRDS that restricts it to the most basic elements and introduces some extensions to support OAuth discovery and other protocols that use specific HTTP methods. In late 2008, XRDS Simple has been cancelled and merged back into the main XRDS specification resulting in the upcoming XRD 1.0 format.Example uses
Besides XRI resolution, examples of typical XRDS usage include:- OpenID authentication for discovery and capabilities description of OpenID providers.
- OAuth discovery for locating OAuth service endpoints and capabilities.
- The Higgins Project for discovery of Higgins context providers.
- XDI.org I-name and I-number digital identity addressing services for generalized digital identity service discovery.
- The XDI data sharing protocol for discovery of XDI service endpoints and capabilities.
Example XRDS document
Following is an example of an XRDS document for the fictional XRI i-name =example. This document would typically be requested from a Web server via HTTP or HTTPS using the content type application/xrds+xml. Note that the outer containerSynonyms
XRDS documents can assert zero or more synonyms for a resource. In this context, a synonym is another identifier that identifies the same target resource. For instance, the example XRDS document above asserts four synonyms:- The local synonym !4C72.6C81.D78F.90B2. This is a relative XRI synonym assigned by the provider of this XRDS document.
- The equivalent URL
http://example.com/example-user with a priority of 10. - The equivalent URL
http://example.net/blog with a priority of 15. - The canonical identifier xri://=!4C72.6C81.D78F.90B2. This is an absolute XRI i-number for the target resource—a persistent identifier that will never be reassigned.
Service endpoints (SEPs)
The other main purpose of XRDS documents is to assert the services associated with a resource, called service endpoints or SEPs. For instance, the example XRDS document above asserts four service endpoints for the represented resource:- An XRI resolution service.
- An OpenID 2.0 authentication service.
- An OpenID 1.0 authentication service.
- An untyped service for requesting resources with a media type
image/jpeg .