Hybrid OpenID/OAuth: Check for session validity during logout

GitHub-Bug: https://github.com/davido/gerrit-oauth-provider/issues/9
Change-Id: I17aaed508ef61959a3fc5634d76eb5386305f9a0
This commit is contained in:
David Ostrovsky
2015-04-25 12:33:28 +02:00
parent e0ad57751b
commit 3b6c86cb62

View File

@@ -52,6 +52,8 @@ class OAuthOverOpenIDLogoutServlet extends HttpLogoutServlet {
protected void doLogout(HttpServletRequest req, HttpServletResponse rsp)
throws IOException {
super.doLogout(req, rsp);
if (req.getSession(false) != null) {
oauthSession.get().logout();
}
}
}