Brian Wallis wrote:

I'm running 3.0.7 JBoss with the default Jetty integration and am writing a struts based web app front end to an EJB application.

I have been trying to find out how form based authentication works and have read a lot of articles and mail items from various lists and am confused about a couple of things.

Do I have to provide an action class and a form class for the login form or does the web container handle this, ie: do I have to point j_security_check to an action that I write? If not, why do I keep getting "Cannot retrieve mapping for action /j_security_check" errors?

Do I have to provide the form with the j_username and j_password fields for the login or does the web container handle this as well.

I believe that I have to provide some code to pass the authentication details onto an EJB container when I call into a bean. I'm not sure what this code is. Any examples? I thought I saw one once during my searching but cannot find it again.

thanks,

brian wallis...



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Hi Brian,

The information you need for setting up form-based login is in the servlet spec. Its quite straight forward. The web container will propagate your security credentials with ejb calls as long as the request has been to a secured resource in web.xml. Otherwise you will have to attach them manually.

You don't need to use an action class mapping for form-based login.

jfc



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to