This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 39571
    
  27
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 - updated with new look and Ping home screen widget
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: 39571
    
  27
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
Tomcat JDBCRealm and programatic authentication issue
Tomcat JDBCRealm and programmatic authentication
Form submission
stateless session bean and declaritive security