Unfortunately this does not work with openid authentication. When doing
openid authentication, only the user's identity, i.e. his openid, get
stored in the Authentication token. I'll have to manually fetch the
UserDetails from the database or intercept the call to the
UserDetailsService and store t
In your page use
Authentication authentication = SecurityContextHolder.getContext()
.getAuthentication();
if ( authentication.getPrincipal() instanceof User ) {
...
}
where User is you specific User object.
Hope that helps,
Michael
Ulrich Stärk schrieb:
Hi,
are the UserDetai