Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Tomcat, Adding Users and Logging In Automatically

Thread view: 
koyna - 12 Jul 2006 18:14 GMT
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.
Danno - 12 Jul 2006 19:35 GMT
> 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.
Danno - 12 Jul 2006 19:35 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.