Hi Annie,
The authentication is completely separate from my example. In my example, I already assume that the user has authenticated itself succesfully to Tomcat (either through a frontend webserver like Apache or in Tomcat itself). The code in the example only deals with what you can do after that (i.e. assigning Permissions based on Principals in the Java security framework). The Filter is simply used to establish a security context in which the servlets are run.
In short, you should first get your authentication set up...
Cheers,
Michiel
Annie Guo wrote:
Thank you Michiel. I did read your tutorial. I am new to JAAS and security
stuff. I am still strugling with it. I have followed all your code and
setup in web.xml. My problem is even though from my LoginModule debug
statements that the login and LoginModule commit is successful (I just check
the username equals password), my resources are still protected and I keep
getting the 'Enter Network Password' popup.
Would yuo please shed some light on that?
Thank you.
-----Original Message----- From: Michiel Toneman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:53 AM To: Tomcat Users List Subject: Re: Programmatic Authentication?
I've done something similar and written a little tutorial about it at:
http://www.kopz.org/public/documents/tomcat/jaasintomcat.html
Maybe it helps.
Michiel
-- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]