W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

Re: getting the basic auth-name

From: S. Alexander Jacobson <alex@interband.com>
Date: Wed, 22 Jan 1997 09:28:54 -0500 ()
To: www-jigsaw@www10.w3.org
Message-ID: <Pine.WNT.3.94.970122085820.-258563D-100000@maniac.vo.com>
Anselm, Anotonio,

You both suggest something like this:
> request.getState(www.jigsaw.auth.AuthFilter.STATE_AUTHUSER);

There seems to be two difficulties with this:
1. it returns the name of the user as opposed to an Authuser object
which forces two resource lookups instead of just one if I want other
information from the user

2. this use of request state seems to have inherent namespace problems-
What if I had multiple auth filters
in front of my resource.  For example, suppose that I had an
organization authfilter which allowed everyone from particular sets 
of IP addresses to enter as the organization from which they accessed
(e.g. aol, cserve, prodigy, ibm).  Then I installed a generic-auth-filter
inside that filter to track particular users at particular organizations.

I assume a state lookup as above would return just the content of the
inner-auth. Is there a way to grab both?  

-Alex-
___________________________________________________________________
S. Alexander Jacobson			Interband Communications  
1-212-799-2645 voice			1-212-799-1075 fax


On Tue, 21 Jan 1997, Anselm Baird_Smith wrote:

> Antonio Ramirez writes:
>  > 
>  > You can use this:
>  > 
>  > String authuser = 
>  > 	request.getState(www.jigsaw.auth.GenericAuthFilter
>  > 				.STATE_AUTHUSER)
> 
> Oops, a slight bug above: it should read:
> 
> request.getState(www.jigsaw.auth.AuthFilter.STATE_AUTHUSER);
> 
> (The GenericAuthFilter being one possible implementation of
> AuthFilter)
> 
> Anselm.
> 
Received on Wednesday, 22 January 1997 09:29:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT