Reputation: 15
I'm trying to get the information of the session created with spring security. I want to get it in a flow of spring webflow. I tryed this:
<evaluate expression="SecurityContextHolder.getContext().getAuthentication().getPrincipal()" result="flowScope.information"/>
But it doesn't works...
Thank you
Upvotes: 0
Views: 952
Reputation: 221
Use the special EL variable currentUser
to get access to the Authentication object:
Upvotes: 2