Listen to tomcat realm authentication events

前端 未结 2 824
余生分开走
余生分开走 2021-01-15 00:57

I need to know when tomcat accepts a login using realm authentication for a given context. I\'ve been looking at the possible listeners available (ServletContextListener an

2条回答
  •  执念已碎
    2021-01-15 01:21

    If you have access to the server configuration, you might try writing a LifecycleListener (http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/LifecycleListener.html), which are configured with the server (see the tomcat server config docs for your version).

    Not sure if it will do the trick or not, but a good place to check.

    Good luck.

提交回复
热议问题