Proposed Yadis API
From Yadis
Please discuss this proposal on the discussion page.
Contents |
[edit]
Class
class Yadis { discover(XRI) openid_servers([version, ...]) lid_servers([version, ...]) }
[edit]
Methods
[edit]
discover(XRI)
Discovers the identity servers associated with an XRI. (A URI is a valid XRI.) Returns false if discovery fails.
[edit]
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'])
[edit]
lid_servers([version, ...])
LID equivalent of openid_servers.