I have a servlet which is secured, and a program which needs to access that servlet.
When the servlet is secured using BASIC authentication, I can easily pass my
credentials using the following code
| Authenticator.setDefault( new Authenticator()
| {
| protected PasswordAuthentication getPasswordAuthentication()
| {
| return new PasswordAuthentication( login, pass.toCharArray() );
| }
| } );
|
However, I changed my servlet to FORM based authentication for a better user
experience. Now my automatic authentication no longer works, and the client code gets
the login page instead of the actual result.
Is there a way to send my credentials to the servlet to avoid trying to interpret the
login page etc?
Thanks for the help,
Joachim
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844119#3844119
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844119
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user