[Yanel-dev] Login Issue?
Cedric Staub
cedric.staub at wyona.com
Mon Jan 24 11:09:24 CET 2011
Hi there
On Fri, Jan 14, 2011 at 05:34:56PM +0100, Balz Schreier wrote:
> I noticed the following:
>
> 1) You login a user like this:
>
> DefaultWebAuthenticatorImpl.authenticate(username, password, getRealm(),
> request.getSession())
>
> 2) Right after this line, you want to retrieve the user via environment:
>
> environment.getIdentity().getUsername()
>
> doesn't work! NULL is returned for the user.
>
> Instead you have to use this line to retrieve the user object:
>
> realm.getIdentityManager().getUserManager().getUser(userID)
>
> So I assume that the identity object gets not updated correctly in the
> environment?
> Can you verify that?
Hmm... This may be implementation-specific. Which class are you using as
IdentityManager? But anyhow this is clearly a bug if you ask me. I shall
investigate the matter when I have some more time.
Cheers
Cedric
More information about the Yanel-development
mailing list