Re: 3 fiels form based login authentication in Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chetan, Chetan Bob wrote: | I want Tomcat authentication like company id / username / Password so it | looks i should go for Form based authentication Tomcat cannot do this at all, unfortunately. Securityfilter (http://securityfilter.sourceforge.net), if you get the development version, will give you access to the raw HttpServletRequest and you can grab whatever information you want (including additional fields). | Should we need to write our own Realm if so then how to any example? You can't even write your own realm, because Realm only includes methods like: authenticate(String username, String password) so you're out of luck. Check out sf. You'll be happy. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhWxZoACgkQ9CaO5/Lv0PAplQCfZ7pm0mh3mzSfFFD07pCsLshz gvsAoKAXdxQfB9j2iSexUCrlWblBWGqK =nxqg -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
3 fiels form based login authentication in Tomcat
Hi I want Tomcat authentication like company id / username / Password so it looks i should go for Form based authentication 1) I wrote login.jsp and error.jsp ; 2)web.xml FORM MyFirst Protected Area /login.jsp<;/form-login-page> /error.jsp<;/form-error-page> 3 )configured Realm in server.xml of tomcat className="org.apache.catalina.realm.DataSourceRealm"; Now issue is tomcat handles this j_security_check action and i want the j_companyid field in my application ... so how can i get it Can we write an class that will process this authentication and pass insted of let tomcat handel it ? OR any configuration that can handel this j_companyid and pass on to application? Should we need to write our own Realm if so then how to any example? Thanks Chetan Login.jsp * http://www.w3.org/TR/html4/loose.dtd";> Login Page Login to MyFirst If you have been issued a username and password, key them in here now! CompanyID : Username : Password : -- View this message in context: http://www.nabble.com/3-fiels-form-based-login-authentication-in-Tomcat-tp17846853p17846853.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]