Thanks, Bill . 
In BasicAuthenticator.java , the authenticate() method gets the username and password 
by calling :

String authorization = request.getAuthorization();

which gets the value from the "authorization" request header, which is  the value to 
be base 64 encoded of username and password.  My goal is to set this request with the 
correct "authorization" header so that I can bypass the "Login dialog" if the username 
and password are already got before the request (before the user enters 
http://......../webdav to run the webdav servlet).  I have no clue how to do this ... 
What's the purpose of a VALVE class ?  Thanks. 


Bill Barker <[EMAIL PROTECTED]> wrote:
The simplest solution is to enable the SingleSignOnValve. This allows any
login to any Context to be passes to any other Context. If this doesn't
meet your needs, then you can:
1) Write a custom Valve to pickup the User.
2) Write a custom Authenticator that knows how to pickup the User.

"Dinh, Chinh" wrote in message
news:[EMAIL PROTECTED]
>
> I have a question about WEBDAV and How authenticate works.
>
> If i have this in web.xml
>
> 
> BASIC
> MyCustomRealm
> 
>
> It will get an Popup Log in dialog, and it will invoke my realm's
> authenticate() method, with username and password being entered by
> the user.
>
> However, I do not want the log in dialog to pop up in all cases.
> There's a case that the user is already authenticated BEFORE he tries
> to run the webdav servlet, and in this case, he wants to bypass the
> log in dialog.
>
> Do you know How to pass in the Authenticator class some information
> so that it doesn't need to invoke the login dialog if the user is already
> authenticated ? What information would the authenticator need ?
>
> Thanks.
> - Chinh
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to