<div dir="ltr">As James mentioned, Greg, the spec requires that you verify more than just the op_endpoint.&nbsp; In fact 4 fields are listed in the table of section 11.2 that should be equal.&nbsp; And James, I think these four fields <i>should</i> be enough to narrow the endpoints down to just one.&nbsp; And even if it didn&#39;t, it might as well be since all the significant data is the same.<br>
<br><div class="gmail_quote">On Tue, Jul 22, 2008 at 7:47 AM, James Tindall &lt;<a href="mailto:james@atomless.com">james@atomless.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Greg,<br>
<br>
I think you&#39;re right - but it&#39;s possible that more than one endpoint in<br>
the xrds has the same op_endpoint as that supplied in the response - so<br>
it would be necessary to also compare other fields to select the best<br>
matching endpoint. This is making OpenID kind of a protracted process.<br>
<font color="#888888"><br>
=james.tindall<br>
</font><div><div></div><div class="Wj3C7c"><br>
Greg Byrd wrote:<br>
&gt; (1) Section 11.2 says that RP must perform discovery &quot;[i]f the Claimed<br>
&gt; Identifier was not previously discovered.&quot; &nbsp;So I think you don&#39;t need<br>
&gt; to do that second discovery step in your email. &nbsp;But you said<br>
&gt; stateless mode, so maybe you don&#39;t remember that you discovered the ID<br>
&gt; in the first place, so...<br>
&gt;<br>
&gt; (2) The op_endpoint field is returned in id_res, so the verification<br>
&gt; should just check whether any of the OPs returned from discovery match<br>
&gt; the supplied op_endpoint.<br>
&gt;<br>
&gt; ...Greg<br>
&gt;<br>
&gt;<br>
&gt; James Tindall wrote:<br>
&gt;&gt; Suppose a relying party is operating under stateless mode. Suppose<br>
&gt;&gt; also that the discovery phase for the given claimed_id returned more<br>
&gt;&gt; than one endpoint. Then suppose that association attempts failed on<br>
&gt;&gt; at least one of the endpoints but then succeeded on one of the other<br>
&gt;&gt; endpoints further down the priority order. Then upon receiving the<br>
&gt;&gt; authentication (id_res) response from the chosen OP the RP must<br>
&gt;&gt; perform discovery on the claimed_id contained in the response in<br>
&gt;&gt; order to be able to verify the response data against discovered data.<br>
&gt;&gt; But then if, as is probable, the discovery phase again returns more<br>
&gt;&gt; than one endpoint, how is the RP to choose which one to verify the<br>
&gt;&gt; response data against?<br>
&gt;&gt;<br>
&gt;&gt; =james.tindall<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; general mailing list<br>
&gt;&gt; <a href="mailto:general@openid.net">general@openid.net</a><br>
&gt;&gt; <a href="http://openid.net/mailman/listinfo/general" target="_blank">http://openid.net/mailman/listinfo/general</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
general mailing list<br>
<a href="mailto:general@openid.net">general@openid.net</a><br>
<a href="http://openid.net/mailman/listinfo/general" target="_blank">http://openid.net/mailman/listinfo/general</a><br>
</div></div></blockquote></div><br></div>