Interesting, for my applications it always returns null if no user has
be authenticated. How did you setup your Realm / web.xml?
Manfred
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Monday, July 21, 2008 7:27 AM
To: users_at_glassfish.dev.java.net
Subject: Re: RE: Determine if user is authenticated
> You are probably looking for
> HttpServletRequest.getUserPrincipal()
>
> Manfred
This method returns a user principal even if no user is authenticated. I believe the user credential is ANONYMOUS. Do you know if this name is a JEE standard or whether it is glassfish specific?
[Message sent by forum member 'chadws' (chadws)]
http://forums.java.net/jive/thread.jspa?messageID=288048
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net