All Might
JCHJava Community | Help. Code. Learn.
•Created by All Might on 4/9/2025 in #java-help
Additional Fields in spring security
https://stackoverflow.com/questions/45546327/get-current-users-extra-information-by-thymeleaf-sec-tag-working-with-spring-se
I'm trying to make a project where you can view your additional fields or information like first name, last name etc in the webpage. Using <p><span sec:authentication="principal.firstname"></span></p> didn't help either. It said that user object has no such field.
I already created custom spring security user but now it doesn't take any passwords and doesn't allow login. username and password i entered are correct.
The above link i posted is the solution to my question but i still can't get it to work.
This is not for login purpose. Only for displaying information from the database (firstname lastname email etc)
9 replies