Tomcat, Adding Users and Logging In Automatically

K

koyna

I have configured Tomcat (4.1) to use form-based (j_security_check)
user authentication against user/role tables in a JDBCRealm and
everything works as expected. However, after registering a new user and
adding them to this database programmatically, I then need to
automatically log them in, skipping the log-in page on this one
occasion. How best to do this? Thanks.
 
D

Danno

koyna said:
I have configured Tomcat (4.1) to use form-based (j_security_check)
user authentication against user/role tables in a JDBCRealm and
everything works as expected. However, after registering a new user and
adding them to this database programmatically, I then need to
automatically log them in, skipping the log-in page on this one
occasion. How best to do this? Thanks.

Hahaha. I am sticking around for this answer. You can do this with a
JAAS Realm (never tried on tomcat) and cookies, but I don't know about
using the JDBC Realm.
 
D

Danno

koyna said:
I have configured Tomcat (4.1) to use form-based (j_security_check)
user authentication against user/role tables in a JDBCRealm and
everything works as expected. However, after registering a new user and
adding them to this database programmatically, I then need to
automatically log them in, skipping the log-in page on this one
occasion. How best to do this? Thanks.

Hahaha. I am sticking around for this answer. You can do this with a
JAAS config (never tried on tomcat) and cookies, but I don't know about
using the JDBC Realm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top