This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 38b8912 Clarify the JASPIC docs 38b8912 is described below commit 38b89122daad27a6aec9f64fb5f063b904342f97 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Sep 27 17:44:26 2021 +0100 Clarify the JASPIC docs --- webapps/docs/changelog.xml | 8 ++++++++ webapps/docs/config/jaspic.xml | 21 +++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 17b9cc2..bcf85b3 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -138,6 +138,14 @@ </fix> </changelog> </subsection> + <subsection name="Web applications"> + <changelog> + <fix> + Clarify the JASPIC configuration options in the documentation web + application. (markt) + </fix> + </changelog> + </subsection> </section> <section name="Tomcat 8.5.71 (schultz)" rtext="2021-09-13"> <subsection name="Catalina"> diff --git a/webapps/docs/config/jaspic.xml b/webapps/docs/config/jaspic.xml index 1adf68d..15a611f 100644 --- a/webapps/docs/config/jaspic.xml +++ b/webapps/docs/config/jaspic.xml @@ -39,10 +39,23 @@ implementation is primarily intended to enable the integration of 3rd party JASPIC authentication implementations with Tomcat.</p> - <p>JASPIC may be configured dynamically by an application or statically via - the <code>$CATALINA_BASE/conf/jaspic-providers.xml</code> configuration file. - If present, a JASPIC configuration will over-ride any - <code><login-config></code> present in <code>web.xml</code>.</p> + <p>JASPIC may be configured in one of two ways:</p> + <ul> + <li>At the container level via the static configuration file + <code>$CATALINA_BASE/conf/jaspic-providers.xml</code>. With this + approach all required classes must be visible to Tomcat's Common class + loader which normally means placing a JAR in + <code>$CATALINA_BASE/lib</code>.</li> + <li>At the web application level via dynamic configuration using the JASPIC + API. With this approach all required classes must be visible to the web + application class loader which normally means placing a JAR in the web + application's <code>WEB-INF/lib</code> directory.</li> + </ul> + + <p>Users should be aware that if the static JASPIC configuration file + configures JASPIC for a given web application then the JASPIC configuration + will take precendence over any <code><login-config></code> present in + the web application's <code>WEB-INF/web.xml</code> file.</p> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org