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 the result somewhere.
Uli Am Di, 7.10.2008, 19:28, schrieb Michael Gerzabek: > > 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 UserDetails of a logged in user somehow exposed as a service or >> accessible via some service so that I can access them? >> >> Uli >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]