Posted inSpring Boot
What’s the “principal” in Spring Security?
Spring Security defines the notion of a principal, the currently logged-in user. When a user authenticates successfully, the principal is stored in Spring's security context, which is thread-bound, thus making…