← Prev in month ← Prev in thread
Next in thread → Next in month →

sample XRDS for oAuth discovery

From
Markus Sabadello <>
Date
2007-12-13T18:32:17+00:00
ID
Thread
sample XRDS for oAuth discovery
<?xml version="1.0" encoding="UTF-8"?>

  <XRDS xmlns="xri://$xrds">
    <XRD xmlns:oauth="http://oauth.net/discovery/1.0" xmlns="xri://$xrd*($v*2.0)">
      <Query>
http://api.example.com/</Query>
      <Expires>2007-12-31T23:59:59Z</Expires>
      <oauth:RequestParameterMethods>
        <oauth:Method>AUTH-HEADER</oauth:Method>

        <oauth:Method>POST-BODY</oauth:Method>
        <oauth:Method>URL-QUERY</oauth:Method>
      </oauth:RequestParameterMethods>
      <oauth:RequestSignature>
        <oauth:Method>HMAC-SHA1</oauth:Method>

      </oauth:RequestSignature>
      <Service>
        <Type>http://oauth.net/core/1.0/endpoint/request</Type>
        <URI>
https://api.example.com/session/request</URI>
        <oauth:HttpMethod>POST</oauth:HttpMethod>
        <oauth:RequestSignature append="head">

          <oauth:Method>PLAINTEXT</oauth:Method>
        </oauth:RequestSignature>
      </Service>
      <Service>
        <Type>
http://oauth.net/core/1.0/endpoint/authorize</Type>
        <URI>https://api.example.com/session/login</URI>
        <oauth:RequestParameterMethods append="override">

          <oauth:Method>URL-QUERY</oauth:Method>
        </oauth:RequestParameterMethods>
      </Service>
      <Service>
        <Type>
http://oauth.net/core/1.0/endpoint/access</Type>
        <oauth:HttpMethod>POST</oauth:HttpMethod>
        <URI>https://api.example.com/session/activate
</URI>
        <oauth:RequestSignature append="head">
          <oauth:Method>PLAINTEXT</oauth:Method>
        </oauth:RequestSignature>
      </Service>
      <Service>

        <Type>http://oauth.net/discovery/1.0/consumer-identity/static</Type>
        <oauth:ConsumerKey>0685bd9184jfhq22</oauth:ConsumerKey>

      </Service>
    </XRD>
  </XRDS>
← Prev in month ← Prev in thread
Next in thread → Next in month →