RE: Question about web app login, user principal, and authentication

2006-01-10 Thread Dulshan De Silva
, January 10, 2006 9:20 AM To: [EMAIL PROTECTED] Subject: Re: Question about web app login, user principal, and authentication Jeppe Sommer (Trifork) wrote: Greg, I agree that there is an amount of implementation freedom wrt. when getUserPrincipal can be expected to return non-null depending

Re: Question about web app login, user principal, and authentication

2006-01-09 Thread Jeppe Sommer (Trifork)
Greg, I agree that there is an amount of implementation freedom wrt. when getUserPrincipal can be expected to return non-null depending on the caching strategy of the container, at least when using basic login. However, with form based login (which, in my experience, is by far the most

Re: Question about web app login, user principal, and authentication

2006-01-09 Thread Aaron Mulder
I would tend to agree with Jeppe here. Thanks, Aaron On 1/9/06, Jeppe Sommer (Trifork) [EMAIL PROTECTED] wrote: Greg, I agree that there is an amount of implementation freedom wrt. when getUserPrincipal can be expected to return non-null depending on the caching strategy of the

Re: Question about web app login, user principal, and authentication

2006-01-08 Thread Greg Wilkins
David, I do not believe that the servlet spec well defines the behaviour of the getUserPrincipal() method for un-secured resources. I raised this with the EG during the 2.4 process and pointed out that several containers implemented this differently. Specifically I wanted to know that if

Re: Question about web app login, user principal, and authentication

2006-01-08 Thread Aaron Mulder
My preferred behavior would be to return the login Principal of the user even for unauthenticated pages (unless they've logged out or timed out, of course). As a side effect, I think this would let us drop the required defualt principal from the security mapping, which would be great.

Re: Question about web app login, user principal, and authentication

2006-01-08 Thread Jeppe Sommer
I think that it is possible to read from the servlet spec that getUserPrincipal should return the current principal for an unprotected resource. Take the following quote (servlet 2.4, section 12.10): Being logged in to a web application corresponds precisely to there being a valid non-null

Re: Question about web app login, user principal, and authentication

2006-01-08 Thread Greg Wilkins
Jeppe Sommer wrote: I think that it is possible to read from the servlet spec that getUserPrincipal should return the current principal for an unprotected resource. Take the following quote (servlet 2.4, section 12.10): Jeppe, The problem is that current is just not defined and it is

Question about web app login, user principal, and authentication

2006-01-06 Thread David Jencks
i've been getting very confused by some behavior related to being logged in and authentication while working with jetspeed, and I hope someone can shed some light on what should be happening. Lets suppose you have a web app with some secured resources and some unsecured resources. If you

Re: Question about web app login, user principal, and authentication

2006-01-06 Thread Jeppe Sommer (Trifork)
The servlet 2.4 spec, section 12.7 states: A security identity, or principal, must always be provided for use in a call to an enterprise bean. The default mode in calls to enterprise beans from web applications is for the security identity of a web user to be propagated to the EJBTM