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

2006-01-10 Thread Jeppe Sommer
al Message- From: Greg Wilkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, 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 implementati

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

2006-01-10 Thread Dulshan De Silva
t: Tuesday, 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 expec

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

2006-01-10 Thread Greg Wilkins
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 on the > caching strategy of the container, at least when using basic login. > However, with form based login (which, in my

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 co

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 common

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 to

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 va

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. Unfortunate

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 getU

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 container

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