You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We display the username by using Spring Security's integration with
214
-
`HttpServletRequest#getRemoteUser()`. The "`Sign Out`" form submits a POST to `/logout`.
204
+
We display the username by using Thymeleaf's integration with Spring Security. The "`Sign Out`" form submits a POST to `/logout`.
215
205
Upon successfully logging out, it redirects the user to `/login?logout`.
216
206
207
+
NOTE: Thymeleaf 3.1 no longer provides access to `HttpServletRequest` so `HttpServletRequest#getRemoteUser()` cannot be used to access the currently authenticated user.
0 commit comments