简体   繁体   中英

How to achieve Single Sign-Out in Keycloak/Spring based applications?

I have 2 Spring web-apps. I'm using Keycloak to protect them. In Keycloak doc it's said that to logout i can use:

HttpServletRequest.logout()

Yes, it loges out user from one app. But the second one still remains active. How to configure Keycloak and/or Spring to provide Single Sign Out?

If you're using the Spring Security adapter use the /sso/logout endpoint instead (either in GET or POST). For instance:

http://myapplication/sso/logout

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM