I have a custom user details object with first name part of it. Below username works, but I want something like the second to work. How can I access this custom property?
<security:authentication property="principal.username" />
<security:authentication property="principal.firstname" />
I presume that you tried the above and that it didn't work.
Check your custom user details class to make sure that the capitalization of the getter and setter methods for the 'firstname' property are correct.