<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 20, 2014 at 10:40 PM, Esteban A. Maringolo <span dir="ltr"><<a href="mailto:emaringolo@gmail.com" target="_blank" class="vt-p">emaringolo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I understood correctly what Mariano needs is server side OAuth.<br>
<br>
I might need this too, because to properly integrate managed accounts<br>
in Android, you must have something very similar to OAuth (tokens,<br>
etc.)<br>
<br>
Otherwise hello.js for the browser will work, and Zinc's SSO to access<br>
an API using Smalltalk.<br><br></blockquote><div><br></div><div>Actually, I need client-side OAuth. I checked hello.js but the server that provides me the API and that requires OAuth is NOT a social network or whatever. Is not listed in the supported servers from hello.js. So I don't know...maybe it is easier to use Zinc's SSO. In fact, as Sven pointed out, there is a nice example of SSO and Seaside! </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Esteban A. Maringolo<br>
<br>
<br>
2014-04-17 16:50 GMT-03:00 Sven Van Caekenberghe <<a href="mailto:sven@stfx.eu" class="vt-p">sven@stfx.eu</a>>:<br>
<div class="HOEnZb"><div class="h5">> There is a Seaside example (look in the repository) and even a live demo: <a href="http://sso.doit.st" target="_blank" class="vt-p">http://sso.doit.st</a><br>
><br>
> On 17 Apr 2014, at 21:37, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" class="vt-p">marianopeck@gmail.com</a>> wrote:<br>
><br>
>> Hi,<br>
>><br>
>> Sorry for the multiple list mail.<br>
>><br>
>> I am analyzing the possibility to implement a API that requires OAuth. I have been reading this link from Sven: <a href="https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md" target="_blank" class="vt-p">https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md</a> and I have a few questions:<br>
>><br>
>> 1) I get lost in the #handleOAuth1Callback: part. I understand I need to provide to oauth a callback url so that this is call once the user has logged in. The thing is that Sven demo seems to be using a (RESTfull) server directly. In my case, this is a Seaside app. So...how should I do this? I guess I could create a WAComponent but then I should use Seaside rest or something? Because I need to map that url to the component (and implement handleRequest: in the component?). Is there another way?<br>
>><br>
>> 2) #loginUrlFor: seems to only set 'oauth_token' however, my protocol says the url should be: <a href="https://whatever/authorize?key={oauth_consumer_key}&token={oauth_token}" target="_blank" class="vt-p">https://whatever/authorize?key={oauth_consumer_key}&token={oauth_token}</a><br>
>> would that still work or I should adapt it?<br>
>><br>
>> 3) Does anyone tested the mention code/repository in GemStone?<br>
>><br>
>><br>
>> Thanks in advance,<br>
>><br>
>> --<br>
>> Mariano<br>
>> <a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>