Outh login and logout

74 views
Skip to first unread message

deep

unread,
Aug 9, 2012, 2:57:12 AM8/9/12
to gwt-oaut...@googlegroups.com
Hi ,
 i would like to know whether completely logging out from the google, 
facebook or any providers is possible using gwt-oauth2.

I feel Clearing the tokens will not out to completely logout from the application.


Jason Hall

unread,
Aug 9, 2012, 9:15:18 AM8/9/12
to gwt-oaut...@googlegroups.com
There's two things that you may be referring to, so I'll answer both.

Logging out of the service:
If you call clearAllTokens() or clear cookies/localStorage some other way, it will not log the user out of the service (Facebook, Google, etc.). If the user goes to facebook.com they will still be logged in.

Logging out of your app:
If you call clearAllTokens() that just means that further calls to get the token will not pull the token from the cache. Basically, it causes your app to "forget" about the user. You can implement your app in such a way that that means they're logged out, or you can automatically attempt to "remember" the user. Attempting to remember may cause a popup window to the auth provider to appear then quickly disappear.
Reply all
Reply to author
Forward
0 new messages