Hi,
Can anyone help me out with the information about how to access the CAS
released attributes from SpringSecurity?
I am only able to get access the username with the help of the below code. How
can I get the other attributes?
Object principal = SecurityContextHolder.getContext()
.getAuthentication().getPrincipal();
String username = "";
if (principal instanceof UserDetails) {
username = ((UserDetails) principal).getUsername();
} else {
username = principal.toString();
}
model.addObject("username", username);
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user