<br><br><div class="gmail_quote">On Tue, Feb 16, 2010 at 1:34 PM, Allen Tom <span dir="ltr">&lt;<a href="mailto:atom@yahoo-inc.com">atom@yahoo-inc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">HI Nat -<br>
<br>
Why is association expensive? It should be no worse than issuing an artifact. I guess it depends on the underlying implementation.<br></span></font></div></blockquote><div><br></div><div>AES or SHA1 is computationally much cheaper than DH, I think. </div>
<div><br></div><div>If the main reason for the combining association and artifact request is to save round-trips, it does not save so much. </div><div>Suppose Association is done only once in a day, and there are 1 million authentication in a day, you are saving only </div>
<div>0.0000001 round trip per authentication, or equivalently, one round trip per day per OP-RP pair. </div><div><br></div><div>In return, you have sacrificed</div><div><br></div><div>1) Computational resource (both CPU and storage since now you have to store the association for every user instead of just OP-RP pair)</div>
<div>2) Ability to sign the artifact request</div><div>3) You cannot use different artifact in the request and response, making it rather difficult to implement stateless Artifact mode. </div><div><br></div><div>Breno - please elaborate on 3). Briefly stating, if request and response artifacts are allowed to be different, the OP can encode all the information into the artifact in a proprietary fashion so that OP can achieve the RESTful artifact mode. </div>
<div><br></div><div>See: <a href="http://lists.openid.net/pipermail/openid-specs/2009-August/005939.html">http://lists.openid.net/pipermail/openid-specs/2009-August/005939.html</a></div><div>and <a href="http://iiw.idcommons.net/OpenID_Artifact_Binding">http://iiw.idcommons.net/OpenID_Artifact_Binding</a></div>
<div><br></div><div>=nat </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">
<br>
The point of the association is to eliminate the extra round trip (aka dumb mode) - however artifact mode by definition requires an extra round trip. I have not thought about this too deeply, however I don’t think the association step adds anything when artifact binding is used.<br>

<br>
What is the point of having different request and response artifacts? I don’t think that’s necessary.<br>
<br>
At least in Yahoo’s case, we can probably get by with artifacts/associations that are well under 255 bytes.  Our OAuth Request Tokens are only 8 bytes, and that’s large enough.<br><font color="#888888">
<br>
Allen</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 2/12/10 10:04 PM, &quot;Nat Sakimura&quot; &lt;<a href="http://sakimura@gmail.com" target="_blank">sakimura@gmail.com</a>&gt; wrote:<br>
<br>
</div></div></span></font><blockquote><div><div></div><div class="h5"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Hi Allen, <br>
<br>
That can be done, but there are a few things to be considered as well. <br>
<br>
1) Association is a rather expensive operation. We might not want to do it with <br>
    every authentication request. <br>
2) Breno wanted to have something like 400 bytes or so to achieve statelessness in  255bytes restriction may be too short for him. <br>
3) Breno (and you I think) wanted to have the request artifact and response artifact different. <br>
3) This would probably mean that we need to touch the core library in many case and arguably has larger impact - which means that we may end up with more adoption friction. (BTW, we actually wrote test code in Java, Python, PHP, and Ruby to see if the draft can be implemented without touching the core library.) <br>

4) In the longer term, I am suspecting that association might be disappearing (like it did in Wrap) so depending on it might not be a good idea.  <br>
<br>
In fact, initially, I was thinking the same with you half a year ago, but after a while, I have abandoned the idea. Assuming that association happens once in every hundreds of authentication request, it just buys me 0.01 round trip per authentication request or less. It is going to be even less for a large provider. I could probably trade that round trip with the benefit gained from the above reasons. That&#39;s why I did not piggy back on the association. <br>

<br>
=nat<br>
 <br>
<br>
On Sat, Feb 13, 2010 at 1:39 PM, Allen Tom &lt;<a href="http://atom@yahoo-inc.com" target="_blank">atom@yahoo-inc.com</a>&gt; wrote:<br>
</span></font></div></div><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><div><div></div><div class="h5">Hi Nat -<br>
<br>
As an optimization, can we combine the association request with the artifact request? In fact, why can’t the association handle <b>be</b> the artifact?<br>
<br>
For example, when the RP requests association, it can pass along all the request parameters that it normally would pass via the browser in the authentication request. The OP can then return the association handle/artifact along with the shared secret.<br>

<br>
The RP then redirects the user’s browser to the OP with the association handle. After the user authenticates, the OP redirects the browser back to the RP with the association handle.<br>
<br>
The RP then makes a direct server call back to the OP with the handle (and probably also the shared secret) to fetch the assertion.<br>
<br>
I think this scheme will save a couple round trips.<br>
<font color="#888888"><br>
Allen<br>
</font><br>
<br>
<br>
<br>
<br></div></div><div class="im">
On 2/11/10 9:55 PM, &quot;Nat Sakimura&quot; &lt;<a href="http://sakimura@gmail.com" target="_blank">sakimura@gmail.com</a> &lt;<a href="http://sakimura@gmail.com" target="_blank">http://sakimura@gmail.com</a>&gt; &gt; wrote:<br>

<br>
</div></span></font><div class="im"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">If you look at my manuscript of the Artifact Binding (<a href="http://www.sakimura.org/specs/ab/1.0" target="_blank">http://www.sakimura.org/specs/ab/1.0</a> ) <br>

</span></font></blockquote></div></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
<br>
</span></font></blockquote>
</div>


<p></p>

-- <br><div><div></div><div class="h5">
You received this message because you are subscribed to the Google Groups &quot;OAuth WRAP WG&quot; group.<br>
To post to this group, send email to <a href="mailto:oauth-wrap-wg@googlegroups.com" target="_blank">oauth-wrap-wg@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:oauth-wrap-wg%2Bunsubscribe@googlegroups.com" target="_blank">oauth-wrap-wg+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/oauth-wrap-wg?hl=en" target="_blank">http://groups.google.com/group/oauth-wrap-wg?hl=en</a>.<br>


</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nat Sakimura (=nat)<br><a href="http://www.sakimura.org/en/">http://www.sakimura.org/en/</a><br><a href="http://twitter.com/_nat_en">http://twitter.com/_nat_en</a><br>