Sample for spring-projects/spring-security#8375.
Reproduction steps:
- Build this project with
./gradlew assemble(requires Java 13) - Deploy the generated
build/libs/spring-security-logout-1.0.0-SNAPSHOT.warto your favorite container. - Navigate to where you deployed (say http://localhost:8080/)
- The home page will tell you are NOT authenticated.
- Navigate to the
/loginpage. - Authenticate with user:user credentials.
- The home page will now tell you DO are authenticated.
- Navigate to the
/logoutpage and confirm. - Go back to the home page: it says you are still authenticated.