Support Immediate mode

50 views
Skip to first unread message

Mael Caldas

unread,
Mar 5, 2013, 8:54:38 AM3/5/13
to gwt-oaut...@googlegroups.com
Hi,

We use gwt-oauth2 to authenticate to our app that use Google Cloud Endpoints. The problem is that the user experience is not as good at it was before, when we was using raw servlet service layer and Cookie authentication (with Google Accounts). Now it keeps prompting user with a popup every time it needs to refresh the authorization token. The problem is described at this post on StackOverflow:

http://stackoverflow.com/questions/15095539/google-cloud-endpoints-gwt-oauth2-authentication

The guys from Endpoints answered that to avoid the popup every time to refresh token it needs to support immediate mode, as described at the documentation:

https://developers.google.com/appengine/docs/java/endpoints/consume_js#adding-oath-authentication

Is it possible to use immediate mode with gwt-oauth2 to get a fresh token without a popup?

Thanks,

Mael


Jason Hall

unread,
Mar 5, 2013, 8:58:46 AM3/5/13
to gwt-oaut...@googlegroups.com
I've added a comment to the SO question, but in short, gwt-oauth2 doesn't support immediate mode at this time (though, patches welcome)

I'd suggest instead wrapping the JS client which _does_ support immediate mode, it'll almost definitely be easier.

- Jason





--
You received this message because you are subscribed to the Google Groups "gwt-oauth2 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-oauth-2-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mael Caldas

unread,
Mar 5, 2013, 9:06:14 AM3/5/13
to gwt-oaut...@googlegroups.com
Thanks Jason!

We are going to try to customize a wrapper and, if succeed, we will share the code.

Cheers,

Mael

2013/3/5 Jason Hall <jaso...@google.com>

--
You received this message because you are subscribed to a topic in the Google Groups "gwt-oauth2 users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gwt-oauth-2-users/2ZqyHBOjMC0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to gwt-oauth-2-us...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Mael
Reply all
Reply to author
Forward
0 new messages