Re: tapestry-spring-security: injecting UserDetails

2008-10-08 Thread Ulrich Stärk
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

Re: tapestry-spring-security: injecting UserDetails

2008-10-07 Thread 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 UserDetai