[Seaside] Oauth without callbacks question

Johan Brichau johan at inceptive.be
Wed Apr 30 18:19:24 UTC 2014

Hi Mariano,

I must say I have a bit of difficulties to understand what control flow you are trying to achieve.
But, as you mention, is this not just a two-step process then: 
- ask for the code in the app
- do the redirect

something like:

     callback:[ requestcode:= self call: InputDialogWindow. self requestContext redirectTo: (self oathService loginUrlFor: requestcode)];
     with: 'login'

But I'm probably missing something in your question as I have never used OAuth...

On 29 Apr 2014, at 22:46, Mariano Martinez Peck <marianopeck at gmail.com> wrote:

> 	self requestContext
> 		redirectTo: (self oauthService loginUrlFor: requestToken) ; 
> 		respond.
> What happens here in my app, is that the browser redirects of course to the OAuth authorization server where I finally can see the verifier code. But...say I have to enter this code in my app...there is no way (as far as I understand) to map it to the (previously stored somewhere) request token. So I don't know which request token to use.
> So I think the only option is that the above redirect in fact opens another tab in the browser and that my seaside apps holds into the current request token. Somehow, I would like seaside to then ask for a verification code or something...

More information about the seaside mailing list