Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spring boot logged in user

Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
// Get user name
authentication.getName()
Code language: JavaScript (javascript)
Source by bhutanio.com #
 
PREVIOUS NEXT
Tagged: #spring #boot #logged #user
ADD COMMENT
Topic
Name
8+5 =