This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
which one to extend if want extra Role info in session ?Page Title Module
I suspect you'll want to develop an AuthenticationDao which generated the GrantedAuthority array to include your customised GrantedAuthority. You could probably simply extend GrantedAuthorityImpl, but it's easy enough to start from GrantedAuthority.
If you do the above, the HttpSessionContextIntegrationFilter will provide all HttpSession integration automatically, as the GRantedAuthoritys are stored inside the Authentication, which is in turn stored inside the SecureContext that is stored in a HttpSession.