wood burning stoves 2.0*
The moose likes Tomcat and the fly likes JDBCRealm and programmatic authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JDBCRealm and programmatic authentication" Watch "JDBCRealm and programmatic authentication" New topic
Author

JDBCRealm and programmatic authentication

Mike Gru
Greenhorn

Joined: Sep 07, 2005
Posts: 4
Is it possible (when using JDBC Realm in tomcat for authentication) to catch and handle the event of the athentication? I mean is it possible to handle this event?
Best regards!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
That's not possible using the standard Realms that ship with Tomcat. But you could extend JDBCRealm, add some notification mechanism to it, and configure Tomcat to use that instead of JDBCRealm. Details on how to get started with a custom Realm are here.

It's also possible to obtain at runtime the Realm object that Tomcat uses, but you would need to utilize Tomcats internal API, and it doesn't solve your problem by itself. The details can be found here if you're curious.
[ September 14, 2005: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Mike Gru
Greenhorn

Joined: Sep 07, 2005
Posts: 4
Thanks for the answer. I appreciate it. I've seen the method of geting Realm reference. But I did not find the Realm customization description on Tomcat site page you have pointed to. Could you check it up, please?
Thank you.
Best regards!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
It is the last paragraph in the "What is a Realm?" section. They're more like hints on what you need to do, not a full step-by-step guide.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBCRealm and programmatic authentication
 
Similar Threads
ondrag event
Form submission
stateless session bean and declaritive security
Tomcat JDBCRealm and programatic authentication issue
Tomcat JDBCRealm and programmatic authentication