<br><br><div class="gmail_quote">On Wed, Nov 19, 2008 at 10:14 AM, Breno de Medeiros <span dir="ltr">&lt;<a href="mailto:breno@google.com">breno@google.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Tue, Nov 18, 2008 at 10:32 PM, Dirk Balfanz &lt;<a href="mailto:balfanz@google.com">balfanz@google.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Nov 18, 2008 at 10:04 PM, Breno de Medeiros &lt;<a href="mailto:breno@google.com">breno@google.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 18, 2008 at 10:00 PM, Dirk Balfanz &lt;<a href="mailto:balfanz@google.com">balfanz@google.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Nov 18, 2008 at 6:19 PM, Allen Tom &lt;<a href="mailto:atom@yahoo-inc.com">atom@yahoo-inc.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Dirk Balfanz wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Oh I see. Ok. I&#39;l make a new revision of the spec where I add a<br>
&gt;&gt; &gt;&gt;&gt; required<br>
&gt;&gt; &gt;&gt;&gt; parameter (the consumer key) to the auth request.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; Cool, thanks!<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; What should the spec recommend the OP should do if the consumer key<br>
&gt;&gt; &gt;&gt;&gt; and<br>
&gt;&gt; &gt;&gt;&gt; realm don&#39;t match? Return a cancel? Return something else?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; I&#39;d recommend an error consistent with Section 8.2.4 in the OpenID 2.0<br>
&gt;&gt; &gt;&gt; spec, with a new error_code value indicating that the either the CK or<br>
&gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt; realm was invalid. There may actually need to be 2 errors, one to<br>
&gt;&gt; &gt;&gt; indicate<br>
&gt;&gt; &gt;&gt; that the CK is invalid, and another to indicate that the CK is not<br>
&gt;&gt; &gt;&gt; valid for<br>
&gt;&gt; &gt;&gt; the realm.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href="http://openid.net/specs/openid-authentication-2_0.html#anchor20" target="_blank">http://openid.net/specs/openid-authentication-2_0.html#anchor20</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; But Section 8.2 is about the association response. In the auth response,<br>
&gt;&gt; &gt; we<br>
&gt;&gt; &gt; currently only have cancel or setup_needed. If we invent another error<br>
&gt;&gt; &gt; condition there, we&#39;re no longer a pure &quot;extension&quot;.<br>
&gt;&gt;<br>
&gt;&gt; The solution is to add an optional term in the openid.oauth response<br>
&gt;&gt; and return the appropriate error code from the OAuth error handling<br>
&gt;&gt; spec.<br>
&gt;<br>
&gt; Well, the oauth errors are about things like the nonce being reused, the<br>
&gt; signature not verifying, or the request token being revoked. We don&#39;t have<br>
&gt; any of that here.<br>
&gt; It seems to me that in OpenID, you simply don&#39;t return a value if the<br>
&gt; extension in question encountered some sort of problem. We follow that<br>
&gt; spirit when the user declines the OAuth request (while, at the same time,<br>
&gt; approving the authentication request). This error condition (realm not<br>
&gt; matching the CK), however, &nbsp;feels different. This is more like if the RP<br>
&gt; violates the &quot;both present or both absent&quot; rule and sends a claimed if but<br>
&gt; no identity. As far as I can tell, the spec is silent on what the SP is<br>
&gt; supposed to do when such inconsistent requests come in. Maybe that&#39;s what we<br>
&gt; should do, too - just say that they have to match, and don&#39;t say what should<br>
&gt; happen if they don&#39;t?<br>
<br>
</div></div>Sounds good, because such requests may either be accidental or<br>
malicious, and the OP might have to deal with them accordingly.<br>
<div class="Ih2E3d"></div></blockquote><div><br>Ok, new version is up. I took out the sentence that recommended to send a cancel. I also added a section on discovery (just copied whatever the AX extension says about that).<br>
<br>Dirk.<br><br>&nbsp;</div></div><br>