diff --git a/xep-0235.xml b/xep-0235.xml index 272ff99e..c64f51ce 100644 --- a/xep-0235.xml +++ b/xep-0235.xml @@ -21,6 +21,12 @@ NOT_YET_ASSIGNED &stpeter; + + 0.6 + 2008-08-07 + psa +

Clarified error handling and service discovery.

+
0.5 2008-08-07 @@ -181,10 +187,91 @@ oauth_version%3D1.0 ]]> - -

If a service provides and accepts authorization tokens, it MUST advertise support for the 'urn:xmpp:tmp:oauth' namespace in its disco#info replies (if provided) its &xep0115; notations &NSNOTE;.

+ +

If a Service Provider rejects a Consumer's access request, the Service Provider SHOULD return either a &badrequest; or ¬authorized; stanza error, with an appropriate OAuth-specific error condition as described in the following table.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OAuth-Specific ConditionGeneric Condition
<duplicated-parameter/>&badrequest;
<invalid-consumer-key/>¬authorized;
<invalid-nonce/>¬authorized;
<invalid-signature/>¬authorized;
<invalid-token/>¬authorized;
<missing-parameter/>&badrequest;
<token-required/>¬authorized;
<unsupported-parameter/>&badrequest;
<unsupported-signature-method/>&badrequest;
+

An example follows.

+ + + + + + + ]]>
+ +

If an entity supports the protocol specified herein, it MUST advertise that fact by returning a feature of "urn:xmpp:tmp:oauth" in response to &xep0030; information requests &NSNOTE;.

+ + + + ]]> + + + ... + + ... + + + ]]> +

In order for an application to determine whether an entity supports this protocol, where possible it SHOULD via the dynamic, presence-based profile of service discovery defined in &xep0115;. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.

+
+ +

Signatures generated according to the signature generation algorithm might be subject to replay attacks. However, inclusion of the XMPP "from" and "to" addresses limits these attacks to compromised servers or client-to-server connections. In addition, inclusion of the nonce value also helps to prevent replay attacks.

@@ -205,7 +292,8 @@ oauth_version%3D1.0
- + + + ]]> + + + + + + + + + + + + + + + + @@ -235,7 +346,8 @@ oauth_version%3D1.0 - ]]> + ]]> +