質問

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