Archive · Yadis wiki
Class
From the archiveThis page is part of the working wiki of the Yadis discovery protocol, kept here as it was written by the project’s participants in 2005–2006. It is preserved for the record and is not maintained as current documentation. All archived pages →
Please discuss this proposal on the discussion page.
On this page
class Yadis {
discover(XRI)
openid_servers([version, ...])
lid_servers([version, ...])
}
Methods
discover(XRI)
Discovers the identity servers associated with an XRI. (A URI is a valid XRI.) Returns false if discovery fails.
openid_servers([version, ...])
Returns the OpenID servers associated with an XRI as an array of hashes:
[
{ version => ,
uri => ,
delegate => },
...
]
Optionally accepts a list of versions supported by the client as a parameter. For example, if the client only supports OpenID 1.0, it could call:
yadis.openid_servers(['1.0'])
lid_servers([version, ...])
LID equivalent of openid_servers.