Extensible Resource Identifier (XRI) Resolution Version 2.0

Committee Draft 02

25 November 2007

Specification URIs:

 

This Version:

http://docs.oasis-open.org/xri/2.0/specs/cd02/xri-resolution-V2.0-cd-02.html

http://docs.oasis-open.org/xri/2.0/specs/cd02/xri-resolution-V2.0-cd-02.pdf

http://docs.oasis-open.org/xri/2.0/specs/cd02/xri-resolution-V2.0-cd-02.doc

Previous Version:

N/A

Latest Version:

http://docs.oasis-open.org/xri/2.0/specs/xri-resolution-V2.0.html

http://docs.oasis-open.org/xri/2.0/specs/xri-resolution-V2.0.pdf

http://docs.oasis-open.org/xri/2.0/specs/xri-resolution-V2.0.doc

Technical Committee:

OASIS eXtensible Resource Identifier (XRI) TC

Chairs:

Gabe Wachob, AmSoft <gabe.wachob@amsoft.net>

Drummond Reed, Cordance<drummond.reed@cordance.net>

Editors:

Gabe Wachob, AmSoft <gabe.wachob@amsoft.net>

Drummond Reed, Cordance<drummond.reed@cordance.net>

Les Chasen, NeuStar <les.chasen@neustar.biz>

William Tan, NeuStar <william.tan@neustar.biz>

Steve Churchill, XDI.org <steven.churchill@xdi.org

Related Work:

This specification replaces or supercedes:

·         Extensible Resource Identifier (XRI) Resolution Version 2.0, Committee Draft 01, March 2005

·         Extensible Resource Identifier (XRI) Version 1.0, Committee Draft 01, January 2004

This specification is related to:

·         Extensible Resource Identifier (XRI) Syntax Version 2.0, Committee Specification, December 2005

·         Extensible Resource Identifier (XRI) Metadata Version 2.0,  Committee Draft 01, March 2005

Declared XML Namespace(s)

xri://$res

xri://$xrds

xri://$xrd

xri://$xrd*($v*2.0)

xri://$res*auth

xri://$res*auth*($v*2.0)

xri://$res*proxy

xri://$res*proxy*($v*2.0)

 

Abstract:

This document defines a simple generic format for resource description (XRDS documents), a protocol for obtaining XRDS documents from HTTP(S) URIs, and generic and trusted protocols for resolving Extensible Resource Identifiers (XRIs) using XRDS documents and HTTP(S) URIs. These protocols are intended for use with both HTTP(S) URIs as defined in [RFC2616] and with XRIs as defined by Extensible Resource Identifier (XRI) Syntax Version 2.0 [XRISyntax] or higher. For a dictionary of XRIs defined to provide standardized identifier metadata, see Extensible Resource Identifier (XRI) Metadata Version 2.0 [XRIMetadata]. For a basic introduction to XRIs, see the XRI 2.0 FAQ [XRIFAQ].

Status:

This document was last revised or approved by the XRI Technical Committee on the above date. The level of approval is also listed above. Check the "Latest Version" or "Latest Approved Version" location noted above for possible later revisions of this document.

Technical Committee members should send comments on this specification to the Technical Committee's email list. Others should send comments to the Technical Committee by using the "Send A Comment" button on the Technical Committee's web page at http://www.oasis-open.org/committees/xri.

For information on whether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the Technical Committee web page (http://www.oasis-open.org/committees/xri/ipr.php.

The non-normative errata page for this specification is located at http://www.oasis-open.org/committees/xri.

 

Notices

Copyright © OASIS® 1993-2007. All Rights Reserved.

All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.

This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

OASIS requests that any OASIS Party or any other party that believes it has patent claims that would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification.

OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may include such claims on its website, but disclaims any obligation to do so.

OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights will at any time be complete, or that any claims in such list are, in fact, Essential Claims.

The names "OASIS", "Extensible Resource Identifier", and "XRI" are trademarks of OASIS, the owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use of, specifications, while reserving the right to enforce its marks against misleading uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance.


Table of Contents

 

1      Introduction.............................................................................................................................. 11

1.1 Overview of XRI Resolution Architecture................................................................................... 11

1.2 Structure of this Specification.................................................................................................. 14

1.3 Terminology and Notation........................................................................................................ 15

1.4 Examples............................................................................................................................... 15

1.5 Normative References............................................................................................................. 15

1.6 Non-Normative References...................................................................................................... 16

2      Conformance........................................................................................................................... 17

2.1 Conformance Targets.............................................................................................................. 17

2.2 Conformance Claims............................................................................................................... 17

2.3 XRDS Clients.......................................................................................................................... 17

2.4 XRDS Servers........................................................................................................................ 17

2.5 XRI Local Resolvers................................................................................................................ 18

2.5.1 Generic............................................................................................................................ 18

2.5.2 HTTPS............................................................................................................................. 18

2.5.3 SAML.............................................................................................................................. 18

2.6 XRI Proxy Resolvers............................................................................................................... 18

2.6.1 Generic............................................................................................................................ 18

2.6.2 HTTPS............................................................................................................................. 18

2.6.3 SAML.............................................................................................................................. 18

2.7 XRI Authority Servers.............................................................................................................. 19

2.7.1 Generic............................................................................................................................ 19

2.7.2 HTTPS............................................................................................................................. 19

2.7.3 SAML.............................................................................................................................. 19

2.8 Extensions............................................................................................................................. 19

2.9 Language............................................................................................................................... 19

3      Namespaces............................................................................................................................ 20

3.1 XRI Namespaces for XRI Resolution........................................................................................ 20

3.1.1 XRIs Reserved for XRI Resolution..................................................................................... 20

3.1.2 XRIs Assigned to XRI Resolution Service Types................................................................ 20

3.2 XML Namespaces for XRI Resolution....................................................................................... 21

3.3 Media Types for XRI Resolution............................................................................................... 21

4      XRDS Documents.................................................................................................................... 23

4.1 XRDS and XRD Namespaces and Schema Locations............................................................... 23

4.2 XRD Elements and Attributes.................................................................................................. 23

4.2.1 Management Elements..................................................................................................... 25

4.2.2 Trust Elements................................................................................................................. 26

4.2.3 Synonym Elements.......................................................................................................... 26

4.2.4 Service Endpoint Descriptor Elements.............................................................................. 27

4.2.5 Service Endpoint Trust Elements....................................................................................... 28

4.2.6 Service Endpoint Selection Elements................................................................................ 28

4.3 XRD Attribute Processing Rules.............................................................................................. 29

4.3.1 ID Attribute...................................................................................................................... 29

4.3.2 Version Attribute.............................................................................................................. 29

4.3.3 Priority Attribute............................................................................................................... 29

4.4 XRI and IRI Encoding Requirements......................................................................................... 30

5      XRD Synonym Elements........................................................................................................... 31

5.1 Query Identifiers...................................................................................................................... 31

5.1.1 HTTP(S) URI Query Identifiers........................................................................................... 31

5.1.2 XRI Query Identifiers......................................................................................................... 31

5.2 Synonym Elements................................................................................................................. 32

5.2.1 LocalID............................................................................................................................ 32

5.2.2 EquivID........................................................................................................................... 32

5.2.3 CanonicalID..................................................................................................................... 33

5.2.4 CanonicalEquivID............................................................................................................. 33

5.3 Redirect and Ref Elements...................................................................................................... 34

5.4 XRD Equivalence.................................................................................................................... 34

5.5 Synonym Verification.............................................................................................................. 35

5.6 Synonym Selection................................................................................................................. 35

6      Discovering an XRDS Document from an HTTP(S) URI............................................................... 36

6.1 Overview................................................................................................................................ 36

6.2 HEAD Protocol....................................................................................................................... 36

6.3 GET Protocol.......................................................................................................................... 36

7      XRI Resolution Flow................................................................................................................. 38

8      Inputs and Outputs................................................................................................................... 40

8.1 Inputs..................................................................................................................................... 40

8.1.1 QXRI (Authority String, Path String, and Query String)........................................................ 42

8.1.2 Resolution Output Format................................................................................................. 42

8.1.3 Service Type.................................................................................................................... 43

8.1.4 Service Media Type.......................................................................................................... 44

8.2 Outputs.................................................................................................................................. 44

8.2.1 XRDS Document.............................................................................................................. 46

8.2.2 XRD Element................................................................................................................... 46

8.2.3 URI List............................................................................................................................ 47

8.2.4 HTTP(S) Redirect.............................................................................................................. 47

9      Generic Authority Resolution Service......................................................................................... 48

9.1 XRI Authority Resolution.......................................................................................................... 48

9.1.1 Service Type and Service Media Type............................................................................... 48

9.1.2 Protocol.......................................................................................................................... 49

9.1.3 Requesting an XRDS Document using HTTP(S)................................................................. 51

9.1.4 Failover Handling............................................................................................................. 52

9.1.5 Community Root Authorities............................................................................................. 53

9.1.6 Self-Describing XRDS Documents.................................................................................... 53

9.1.7 Qualified Subsegments.................................................................................................... 54

9.1.8 Cross-References............................................................................................................. 55

9.1.9 Selection of the Next Authority Resolution Service Endpoint.............................................. 55

9.1.10 Construction of the Next Authority URI............................................................................. 55

9.1.11 Recursing Authority Resolution........................................................................................ 56

9.2 IRI Authority Resolution........................................................................................................... 56

9.2.1 Service Type and Media Type........................................................................................... 56

9.2.2 Protocol.......................................................................................................................... 57

9.2.3 Optional Use of HTTPS.................................................................................................... 57

10     Trusted Authority Resolution Service......................................................................................... 58

10.1 HTTPS.................................................................................................................................. 58

10.1.1 Service Type and Service Media Type............................................................................. 58

10.1.2 Protocol......................................................................................................................... 58

10.2 SAML................................................................................................................................... 58

10.2.1 Service Type and Service Media Type............................................................................. 59

10.2.2 Protocol......................................................................................................................... 59

10.2.3 Recursing Authority Resolution........................................................................................ 60

10.2.4 Client Validation of XRDs............................................................................................... 61

10.2.5 Correlation of ProviderID and KeyInfo Elements............................................................... 62

10.3 HTTPS+SAML....................................................................................................................... 62

10.3.1 Service Type and Service Media Type............................................................................. 62

10.3.2 Protocol......................................................................................................................... 63

11     Proxy Resolution Service.......................................................................................................... 64

11.1 Service Type and Media Types.............................................................................................. 64

11.2 HXRIs................................................................................................................................... 64

11.3 HXRI Query Parameters......................................................................................................... 65

11.4 HXRI Encoding/Decoding Rules............................................................................................. 66

11.5 HTTP(S) Accept Headers....................................................................................................... 68

11.6 Null Resolution Output Format............................................................................................... 68

11.7 Outputs and HTTP(S) Redirects.............................................................................................. 68

11.8 Differences Between Proxy Resolution Servers....................................................................... 69

11.9 Combining Authority and Proxy Resolution Servers................................................................. 69

12     Redirect and Ref Processing..................................................................................................... 70

12.1 Cardinality............................................................................................................................. 72

12.2 Precedence........................................................................................................................... 72

12.3 Redirect Processing.............................................................................................................. 73

12.4 Ref Processing..................................................................................................................... 74

12.5 Nested XRDS Documents..................................................................................................... 75

12.5.1 Redirect Examples......................................................................................................... 75

12.5.2 Ref Examples................................................................................................................ 78

12.6 Recursion and Backtracking................................................................................................... 81

13     Service Endpoint Selection....................................................................................................... 82

13.1 Processing Rules.................................................................................................................. 82

13.2 Service Endpoint Selection Logic........................................................................................... 84

13.3 Selection Element Matching Rules.......................................................................................... 85

13.3.1 Selection Element Match Options.................................................................................... 85

13.3.2 The Match Attribute......................................................................................................... 85

13.3.3 Absent Selection Element Matching Rule......................................................................... 86

13.3.4 Empty Selection Element Matching Rule.......................................................................... 86

13.3.5 Multiple Selection Element Matching Rule........................................................................ 86

13.3.6 Type Element Matching Rules......................................................................................... 86

13.3.7 Path Element Matching Rules.......................................................................................... 87

13.3.8 MediaType Element Matching Rules................................................................................ 89

13.4 Service Endpoint Matching Rules........................................................................................... 89

13.4.1 Service Endpoint Match Options..................................................................................... 89

13.4.2 Select Attribute Match Rule............................................................................................. 89

13.4.3 All Positive Match Rule................................................................................................... 89

13.4.4 Default Match Rule......................................................................................................... 89

13.5 Service Endpoint Selection Rules........................................................................................... 90

13.5.1 Positive Match Rule........................................................................................................ 90

13.5.2 Default Match Rule......................................................................................................... 90

13.6 Pseudocode......................................................................................................................... 90

13.7 Construction of Service Endpoint URIs................................................................................... 92

13.7.1 The append Attribute...................................................................................................... 92

13.7.2 The uric Parameter.......................................................................................................... 93

14     Synonym Verification................................................................................................................ 94

14.1 Redirect Verification.............................................................................................................. 94

14.2 EquivID Verification............................................................................................................... 94

14.3 CanonicalID Verification......................................................................................................... 95

14.3.1 HTTP(S) URI Verification Rules........................................................................................ 96

14.3.2 XRI Verification Rules..................................................................................................... 96

14.3.3 CanonicalEquivID Verification......................................................................................... 96

14.3.4 Verification Status Attributes........................................................................................... 97

14.3.5 Examples....................................................................................................................... 98

15     Status Codes and Error Processing......................................................................................... 103

15.1 Status Elements.................................................................................................................. 103

15.2 Status Codes...................................................................................................................... 103

15.3 Status Context Strings......................................................................................................... 106

15.4 Returning Errors in Plain Text or HTML.................................................................................. 106

15.5 Error Handling in Recursing and Proxy Resolution................................................................. 106

16     Use of HTTP(S)...................................................................................................................... 107

16.1 HTTP Errors........................................................................................................................ 107

16.2 HTTP Headers..................................................................................................................... 107

16.2.1 Caching........................................................................................................................ 107