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

Re: getting the basic auth-name

From: Anit Chakraborty <achakra@MIT.EDU>
Date: Mon, 20 Jan 1997 23:34:56 -0500
Message-Id: <3.0.32.19970120233447.0095fc60@po8.mit.edu>
To: "S. Alexander Jacobson" <alex@interband.com>
Cc: www-jigsaw@www10.w3.org
Im not sure if there is a more elegant way, but I know you can basically
take the code that Anslem wrote and add it to your code (after changing a
few things such as package and a few classnames so that they dont conflict
with the existing authentication classes)

I essentially took the code off of the top of
w3c.jigsaw.auth.GenericAuthFilter where the BasicAuthContextException and
BasicAuthContext is, converted all the names to something that suited me
(otherwise the compiler will get mad) and then essentially created a
BasicAuthContext from the request and took the username out of it.

Then to actually get access to the AuthUser, you have to load the realm
associated with the filter and load the AuthUser matching the username from
the BasicAuthContext.

Anit Chakraborty
achakra@w3.org
Received on Monday, 20 January 1997 23:37:31 GMT

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