article: https://www.baeldung.com/get-user-in-spring-security

Get the User in a Bean

Get the User in a Controller

Get the User via a Custom Interface

Get the User in JSP

Get the User in Thymeleaf