Browse Source

Merge branch '6.3.x' into 6.4.x

- Correct method name in logout.adoc

Closes gh-17048
pull/17065/head
Rob Winch 8 months ago
parent
commit
63d79a97db
No known key found for this signature in database
  1. 4
      docs/modules/ROOT/pages/servlet/authentication/logout.adoc

4
docs/modules/ROOT/pages/servlet/authentication/logout.adoc

@ -402,7 +402,7 @@ SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler(); @@ -402,7 +402,7 @@ SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler();
@PostMapping("/my/logout")
public String performLogout(Authentication authentication, HttpServletRequest request, HttpServletResponse response) {
// .. perform logout
this.logoutHandler.doLogout(request, response, authentication);
this.logoutHandler.logout(request, response, authentication);
return "redirect:/home";
}
----
@ -416,7 +416,7 @@ val logoutHandler = SecurityContextLogoutHandler() @@ -416,7 +416,7 @@ val logoutHandler = SecurityContextLogoutHandler()
@PostMapping("/my/logout")
fun performLogout(val authentication: Authentication, val request: HttpServletRequest, val response: HttpServletResponse): String {
// .. perform logout
this.logoutHandler.doLogout(request, response, authentication)
this.logoutHandler.logout(request, response, authentication)
return "redirect:/home"
}
----

Loading…
Cancel
Save