1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-28 12:12:22 -05:00

Merge pull request #198 from SamWhited/xep0156_clarify_required_xrd_doc

XEP-0156: The XRD host-meta file is REQUIRED and the websocket subprotocol is now RFC 7395
This commit is contained in:
Sam Whited 2016-07-13 12:27:31 -07:00 committed by GitHub
commit 28d2de2188
2 changed files with 16 additions and 3 deletions

View File

@ -25,6 +25,17 @@
&hildjj; &hildjj;
&stpeter; &stpeter;
&lance; &lance;
<revision>
<version>1.1.2</version>
<date>2016-06-07</date>
<initials>XSF Editor: ssw</initials>
<remark>
<ul>
<li>Clarify that the XML version of the XRD document is required by the RFC and the JSON version is optional.</li>
<li>Update references to draft-ietf-xmpp-websocket to point to RFC 7395.</li>
</ul>
</remark>
</revision>
<revision> <revision>
<version>1.1.1</version> <version>1.1.1</version>
<date>2016-06-06</date> <date>2016-06-06</date>
@ -105,7 +116,7 @@
</revision> </revision>
</header> </header>
<section1 topic='Introduction' anchor='intro'> <section1 topic='Introduction' anchor='intro'>
<p>Although &xmppcore; specifies the use of TCP as the method of connecting to an XMPP server, alternative connection methods exist, including the &xep0124; method (for which &xep0206; is the XMPP profile) and &xmppoverwebsocket;. For some of these methods, it is necessary to discover further parameters before connecting, such as the HTTP URL of an alternative connection manager. Without ways to auto-discover alternative connection methods, the relevant information would need to be provided manually by a human user (which is cumbersome and error-prone) or hard-coded into XMPP software applications (which is brittle and not interoperable).</p> <p>Although &xmppcore; specifies the use of TCP as the method of connecting to an XMPP server, alternative connection methods exist, including the &xep0124; method (for which &xep0206; is the XMPP profile) and the websocket subprotocol specified in &rfc7395;. For some of these methods, it is necessary to discover further parameters before connecting, such as the HTTP URL of an alternative connection manager. Without ways to auto-discover alternative connection methods, the relevant information would need to be provided manually by a human user (which is cumbersome and error-prone) or hard-coded into XMPP software applications (which is brittle and not interoperable).</p>
<p>This document defines two ways to encapsulate information about alternative connection methods for auto-discovery:</p> <p>This document defines two ways to encapsulate information about alternative connection methods for auto-discovery:</p>
<ol> <ol>
<li>DNS TXT resource records</li> <li>DNS TXT resource records</li>
@ -141,7 +152,7 @@
</section2> </section2>
<section2 topic='Examples' anchor='dnsexamples'> <section2 topic='Examples' anchor='dnsexamples'>
<p>The following examples show two DNS TXT resource records: the first indicates support for the XMPP Over BOSH connection method defined in <cite>XEP-0124</cite> and <cite>XEP-0206</cite> and the second indicates support for XMPP over WebSocket connections defined in &xmppoverwebsocket;.</p> <p>The following examples show two DNS TXT resource records: the first indicates support for the XMPP Over BOSH connection method defined in <cite>XEP-0124</cite> and <cite>XEP-0206</cite> and the second indicates support for XMPP over WebSocket connections defined in <cite>RFC 7395</cite>;.</p>
<example caption='TXT Resource Records'><![CDATA[ <example caption='TXT Resource Records'><![CDATA[
_xmppconnect IN TXT "_xmpp-client-xbosh=https://web.example.org:5280/bosh" _xmppconnect IN TXT "_xmpp-client-xbosh=https://web.example.org:5280/bosh"
_xmppconnect IN TXT "_xmpp-client-websocket=wss://web.example.com:443/ws" _xmppconnect IN TXT "_xmpp-client-websocket=wss://web.example.com:443/ws"
@ -173,6 +184,7 @@ _xmppconnect IN TXT "_xmpp-client-websocket=wss://web.example.com:443/ws"
<section2 topic='Examples' anchor='httpexamples'> <section2 topic='Examples' anchor='httpexamples'>
<p>The following examples show two host-meta link records: the first indicates support for the XMPP Over BOSH connection method defined in <cite>XEP-0124</cite> and <cite>XEP-0206</cite> and the second indicates support for the XMPP Over WebSocket connection method defined in <cite>draft-ietf-xmpp-websocket</cite>.</p> <p>The following examples show two host-meta link records: the first indicates support for the XMPP Over BOSH connection method defined in <cite>XEP-0124</cite> and <cite>XEP-0206</cite> and the second indicates support for the XMPP Over WebSocket connection method defined in <cite>draft-ietf-xmpp-websocket</cite>.</p>
<p>As specified in <cite>RFC 6120</cite> &sect;3, support for the XML encoding of the host-meta resource is REQUIRED while alternative representations such as JSON are OPTIONAL.</p>
<example caption='Result for /.well-known/host-meta'><![CDATA[<?xml version='1.0' encoding=utf-8'?> <example caption='Result for /.well-known/host-meta'><![CDATA[<?xml version='1.0' encoding=utf-8'?>
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'> <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
... ...
@ -252,7 +264,7 @@ _xmppconnect IN TXT "_xmpp-client-websocket=wss://web.example.com:443/ws"
<syntax> <syntax>
The ws: or wss: URL at which to contact the WebSocket connection manager or proxy The ws: or wss: URL at which to contact the WebSocket connection manager or proxy
</syntax> </syntax>
<doc>draft-ietf-xmpp-websocket</doc> <doc>RFC 7395</doc>
</method> </method>
<method> <method>

View File

@ -45,6 +45,7 @@ THE SOFTWARE.
<!ENTITY nbsp "&#160;"> <!ENTITY nbsp "&#160;">
<!ENTITY copy "&#169;"> <!ENTITY copy "&#169;">
<!ENTITY reg "&#174;"> <!ENTITY reg "&#174;">
<!ENTITY sect "&#167;">
<!-- shortcuts for stanza types and children --> <!-- shortcuts for stanza types and children -->