Albert
Albert

Reputation: 15

Trying to get the information of session WebFlow Spring

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

Answers (1)

Brad
Brad

Reputation: 221

Use the special EL variable currentUser to get access to the Authentication object:

http://static.springsource.org/spring-webflow/docs/current/reference/htmlsingle/spring-webflow-reference.html#el-variable-currentUser

Upvotes: 2

Related Questions