سؤال

I just developed an application (Jave with GAE) at appspot.com. It allows Google account to authenticate. However, when I sign off from Google account, my GAE cookie (ACSID, SACSID) doesn't synchronize with Google account and it still run as the user id. If I want implement something when I logout Google, I want my app also logout. Is there any Google API for me to refer at?

لا يوجد حل صحيح

نصائح أخرى

Use the Users API. https://developers.google.com/appengine/docs/java/users/overview

UserService userService = UserServiceFactory.getUserService();

Generate a logout link via:
thisUrl = req.getRequestURI(); String logoutURL = userService.createLogoutURL(thisURL);

When the user clicks on the logoutURL, Google will log them out of the application. It will also log you out of all of your other Google sessions such as GMail, Drive, Calendar etc.

Geoff

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top