aboutsummaryrefslogtreecommitdiff
path: root/mod/oauth_api/vendors/oauth/test/discovery/xrds-magnolia.xrds
blob: 361b5c9a16d189376111a08fb2fbd41c3a5783f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<XRDS xmlns="xri://$xrds">
  
  <!-- Ma.gnolia OAuth Configuration -->
  <XRD xml:id="oauth" xmlns="xri://$XRD*($v*2.0)" version="2.0">
    
    <Type>xri://$xrds*simple</Type>
    <Expires>2008-04-13T07:34:58Z</Expires>

    <!-- Request Token -->
    <Service>
      <Type>http://oauth.net/core/1.0/endpoint/request</Type>
      
      <Type>http://oauth.net/core/1.0/parameters/auth-header</Type>
      <Type>http://oauth.net/core/1.0/parameters/post-body</Type>
      <Type>http://oauth.net/core/1.0/parameters/uri-query</Type>
      <Type>http://oauth.net/core/1.0/signature/HMAC-SHA1</Type>
      <Type>http://oauth.net/core/1.0/signature/RSA-SHA1</Type>
      <Type>http://oauth.net/core/1.0/signature/PLAINTEXT</Type>

      <URI>https://ma.gnolia.com/oauth/get_request_token</URI>
    </Service>

    <!-- User Authorization (HTTPS Prefered) -->
    <Service>
      <Type>http://oauth.net/core/1.0/endpoint/authorize</Type>

      <Type>http://oauth.net/core/1.0/parameters/auth-header</Type>
      <Type>http://oauth.net/core/1.0/parameters/uri-query</Type>

      <URI priority="10">https://ma.gnolia.com/oauth/authorize</URI>
      <URI priority="20">http://ma.gnolia.com/oauth/authorize</URI>
    </Service>

    <!-- Access Token -->
    <Service>
      <Type>http://oauth.net/core/1.0/endpoint/access</Type>

      <Type>http://oauth.net/core/1.0/parameters/auth-header</Type>
      <Type>http://oauth.net/core/1.0/parameters/post-body</Type>
      <Type>http://oauth.net/core/1.0/parameters/uri-query</Type>
      <Type>http://oauth.net/core/1.0/signature/HMAC-SHA1</Type>
      <Type>http://oauth.net/core/1.0/signature/RSA-SHA1</Type>
      <Type>http://oauth.net/core/1.0/signature/PLAINTEXT</Type>

      <URI>https://ma.gnolia.com/oauth/get_access_token</URI>
    </Service>

    <!-- Protected Resources -->
    <Service>
      <Type>http://oauth.net/core/1.0/endpoint/resource</Type>

      <Type>http://oauth.net/core/1.0/parameters/auth-header</Type>
      <Type>http://oauth.net/core/1.0/parameters/post-body</Type>
      <Type>http://oauth.net/core/1.0/parameters/uri-query</Type>
      <Type>http://oauth.net/core/1.0/signature/HMAC-SHA1</Type>
      <Type>http://oauth.net/core/1.0/signature/RSA-SHA1</Type>
    </Service>

    <!-- Consumer Identity -->
    
      <!-- Manual Consumer Identity Allocation -->
      <Service>
        <Type>http://oauth.net/discovery/1.0/consumer-identity/oob</Type>
        <URI>http://ma.gnolia.com/applications/new</URI>
      </Service>
  </XRD>
  
  <!-- Global Resource Definition -->
  
  <XRD xmlns="xri://$XRD*($v*2.0)" version="2.0">
    <Type>xri://$xrds*simple</Type>
    
    <!-- OAuth Endpoints Definition -->
    <Service priority="10">
      <Type>http://oauth.net/discovery/1.0</Type>
      <URI>#oauth</URI>
    </Service>
  </XRD>
  
</XRDS>