mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 00:32:14 +00:00
Add Boot Link
Issue gh-13062
This commit is contained in:
parent
830f79a8c5
commit
33b266e8fa
@ -19,7 +19,7 @@ The rest of this section covers a number of use cases for you to consider:
|
||||
[[logout-java-configuration]]
|
||||
== Understanding Logout's Architecture
|
||||
|
||||
When you include the `spring-boot-starter-security` dependency or use the `@EnableWebSecurity` annotation, Spring Security will add its logout support and by default respond both to `GET /logout` and `POST /logout`.
|
||||
When you include {spring-boot-reference-url}using.html#using.build-systems.starters[the `spring-boot-starter-security` dependency] or use the `@EnableWebSecurity` annotation, Spring Security will add its logout support and by default respond both to `GET /logout` and `POST /logout`.
|
||||
|
||||
If you request `GET /logout`, then Spring Security displays a logout confirmation page.
|
||||
Aside from providing a valuable double-checking mechanism for the user, it also provides a simple way to provide xref:servlet/exploits/csrf.adoc[the needed CSRF token] to `POST /logout`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user