Hello,

Thanks for your response.

You either get a 400 or 404 HTTP error code and as I understand from reading 
other posts this is because you aren't allowed to access the login page or 
j_security_check directly. You must access a secured resource and let the 
normal j2ee mechanics redirect you to the login page.

So knowing this, I have managed to get automatic login to work using the 
commons httpclient API. In fact, there are some JBoss testcases that do this 
already.

What I'm still struggling with is whether this can be done via JavaScript. We 
have a java client that launches the browser and accesses secured resources. 
With other app servers (WebLogic and WebSphere) we just POST directly to 
j_security_check, passing in the credentials via j_username/j_password via some 
HTML and JavaScript. This doesn't appear to work under JBoss so I was wanting 
anyone that has achieved this to outline their methods.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904106#3904106

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904106


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to