Clear token for non-gwt script

15 views
Skip to first unread message

Maxmyd

unread,
Feb 24, 2012, 2:42:53 PM2/24/12
to gwt-oauth2 users
Hello,
I try to use non-gwt script for authentication on Google and Facebook
accounts and it works fine. Login window popups and I can permit app
to use my data. But when logged in on my site I try to log out from
Facebook or Google, next time I refresh my site page, i get a HTTP 400
error which states that user is logged off from site and no data can
be retrieved. That's all correct but I can never log in again using
this script. Is that about an authentication token which is saved from
the script? If so, how do I clear authentication tokens from client
script?
Please help, work is frozen on this :(

Jason Hall

unread,
Feb 24, 2012, 2:47:30 PM2/24/12
to gwt-oaut...@googlegroups.com
The method for clearing tokens is not currently exported to pure JS. Please file an issue so I can track this, it shouldn't be a difficult fix.

- Jason

Maxmyd

unread,
Feb 25, 2012, 3:32:38 AM2/25/12
to gwt-oauth2 users
Hello,
Thank you for reply, I created a ticket #26.

Maxmyd

unread,
Feb 27, 2012, 8:45:35 AM2/27/12
to gwt-oauth2 users
Hello,
Can you PLEASE tell me how to clean tokens? I can't move on with this
issue :(

Jason Hall

unread,
Feb 27, 2012, 1:47:14 PM2/27/12
to gwt-oaut...@googlegroups.com
I will submit a change soon. Sorry for blocking you.

Maxmyd

unread,
Mar 6, 2012, 3:48:58 AM3/6/12
to gwt-oauth2 users
Hello,
Any news on update?
I'm sorry for bothering you, you have many things to do and you
possibly don't have a time for this project. But can you please take
some time to update the library? Or just tell me how do I clear token
myself from javascript?
Thank you.

Jason Hall

unread,
Mar 6, 2012, 9:00:31 AM3/6/12
to gwt-oaut...@googlegroups.com
Yes I've been very busy lately, sorry for the trouble.

The patch is pretty straightforward, just check out and edit http://code.google.com/p/gwt-oauth2/source/browse/trunk/src/com/google/api/gwt/oauth2/client/Auth.java around line 299 to add lines exporting the clearAllTokens method, as is done with login() and expiresIn().

- Jason

Maxmyd

unread,
Mar 10, 2012, 1:10:14 PM3/10/12
to gwt-oauth2 users
Well thank you for the link but this is for Java, and I'm talking
about Javascript library which is, also, non-gwt...

Dmitry


On 6 мар, 18:00, Jason Hall <jasonh...@google.com> wrote:
> Yes I've been very busy lately, sorry for the trouble.
>
> The patch is pretty straightforward, just check out and edithttp://code.google.com/p/gwt-oauth2/source/browse/trunk/src/com/googl...

Jason Hall

unread,
Mar 10, 2012, 6:49:44 PM3/10/12
to gwt-oaut...@googlegroups.com

Yes. I'm suggesting editing the Java code that compiles to JS to make the script you're using.

Maxmyd

unread,
Mar 14, 2012, 6:29:04 AM3/14/12
to gwt-oauth2 users
Oh, I didn't even expect that was possible :) Thank you, I will try to
do something.

Regards,
Dmitry


On 11 мар, 03:49, Jason Hall <jasonh...@google.com> wrote:
> Yes. I'm suggesting editing the Java code that compiles to JS to make the
> script you're using.
Reply all
Reply to author
Forward
0 new messages