Yadis is a communications protocol for discovery of services such as OpenID, OAuth, and XDI connected to a Yadis ID. While intended to discover digital identity services, Yadis is not restricted to those. Other services can easily be included. A Yadis ID can either be a traditional URL or a newer XRIi-name, where the i-name must resolve to a URL. The so-called Yadis URL either equals the Yadis ID or the resolved URL of the XRI i-name. Furthermore, Yadis specifies how to use the Yadis URL to retrieve a service descriptor called Yadis Resource Descriptor. This descriptor follows the XRDS format and connects several services, like authentication or authorization to the Yadis URL. Each service description can have further parameters.
Modular architecture
Yadis follows the REST-ful, "small pieces loosely joined" paradigm that has proven to be successful in the development of the web. The basic assumption is that identities can be addressed with URLs or with other identifiers that can be resolved to URLs. Yadis then associates an XRDS document with each URL that expresses the associated capabilities or services. The owner of a Yadis identifier can choose which services he wishes to use in his XRDS document. After retrieving this document, a relying party such as a website accepting Yadis identifiers can select an appropriate services of the XRDS document, e.g. a protocol to use for authentication. This can allow existing web sites, like blogs, to easily implement basic Yadis functionality while also making it possible to build more advanced applications.
Discovery of the Yadis Resource Descriptor
The capability document associated with an identity URL is found either:
If this XRDS document was returned, using one of the listed mechanisms, for a URL, it would express the following information:
The URL is a Yadis identity URL.
This URL supports the OpenID protocol, through two servers and two delegates.
This URL supports version 1.0 and version 2.0 of the LID protocol, with a delegate.
The owner of this identity URL prefers to sign-on using their LiveJournal account and the OpenID protocol. If that is not possible, the owner would like to use the LID URL http://mylid.net/liddemouser, followed by the MyOpenID service.
LID, OpenID and the developer community
Yadis was initiated by developers of the Light-Weight Identity and OpenID protocols. This collaboration was then joined by members of the OASIS XRI Technical Committee, particularly those working on i-names. However, Yadis is an open initiative, so other developers will start using XRDS lightweight capabilities description, making possible a "mix and match" approach to building Yadis-enabled applications, enablingapplication developers to choose their own balance between ease of implementation on one hand, and range of features on the other.