mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Merge branch '6.3.x' into 6.4.x
- Correct method name in logout.adoc Closes gh-17048
This commit is contained in:
commit
63d79a97db
@ -402,7 +402,7 @@ SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler();
|
|||||||
@PostMapping("/my/logout")
|
@PostMapping("/my/logout")
|
||||||
public String performLogout(Authentication authentication, HttpServletRequest request, HttpServletResponse response) {
|
public String performLogout(Authentication authentication, HttpServletRequest request, HttpServletResponse response) {
|
||||||
// .. perform logout
|
// .. perform logout
|
||||||
this.logoutHandler.doLogout(request, response, authentication);
|
this.logoutHandler.logout(request, response, authentication);
|
||||||
return "redirect:/home";
|
return "redirect:/home";
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@ -416,7 +416,7 @@ val logoutHandler = SecurityContextLogoutHandler()
|
|||||||
@PostMapping("/my/logout")
|
@PostMapping("/my/logout")
|
||||||
fun performLogout(val authentication: Authentication, val request: HttpServletRequest, val response: HttpServletResponse): String {
|
fun performLogout(val authentication: Authentication, val request: HttpServletRequest, val response: HttpServletResponse): String {
|
||||||
// .. perform logout
|
// .. perform logout
|
||||||
this.logoutHandler.doLogout(request, response, authentication)
|
this.logoutHandler.logout(request, response, authentication)
|
||||||
return "redirect:/home"
|
return "redirect:/home"
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user