문제

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