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.war
to your favorite container. - Navigate to where you deployed (say http://localhost:8080/)
- The home page will tell you are NOT authenticated.
- Navigate to the
/login
page. - Authenticate with user:user credentials.
- The home page will now tell you DO are authenticated.
- Navigate to the
/logout
page and confirm. - Go back to the home page: it says you are still authenticated.