Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (24 sloc) 0.912 kb
e7c0fc6 added table to fetch xrds document via yadis
erik authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 fetch a XRDS document via yadis
4 http://openid.net/specs/openid-authentication-2_0.html#discovery
5 -->
6 <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
7 <meta>
8 <sampleQuery>select XRD.Service.URI from {table} where uri="http://www.yahoo.com/"</sampleQuery>
9 </meta>
10 <bindings>
11 <select itemPath="" produces="XML">
12 <inputs>
13 <key id="uri" type="xs:string" paramType="variable" required="true" />
14 </inputs>
15 <execute><![CDATA[
16 var req = y.rest(uri),
17 headers = req.accept('application/xrds+xml').get().headers,
18 xrdsUri = headers['x-xrds-location'],
19 xrdsReq = y.rest(xrdsUri).get().response;
20
21 response.object = xrdsReq;
22 ]]></execute>
23 </select>
24 </bindings>
25 </table>
Something went wrong with that request. Please try again.