You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2020/11/10 11:20:40 UTC

[tomee-tck] 07/10: Override Tomcat Callback Handler with our own fork for TomEE WebProfile too

This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee-tck.git

commit b63c142abee33a06e35bb95c4e1d72b951b90ac8
Author: Jean-Louis Monteiro <je...@gmail.com>
AuthorDate: Tue Nov 10 11:58:32 2020 +0100

    Override Tomcat Callback Handler with our own fork for TomEE WebProfile too
---
 src/test/tomee/conf/context.xml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/src/test/tomee/conf/context.xml b/src/test/tomee/conf/context.xml
new file mode 100644
index 0000000..18a9e49
--- /dev/null
+++ b/src/test/tomee/conf/context.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- The contents of this file will be loaded for each web application -->
+<Context crossContext="true" resourceOnlyServlets="jsp">
+  <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" alwaysAddExpires="true" forwardSlashIsSeparator="false" />
+  <!-- Default set of monitored resources. If one of these changes, the    -->
+  <!-- web application will be reloaded.                                   -->
+  <WatchedResource>WEB-INF/web.xml</WatchedResource>
+  <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
+  <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
+
+  <!-- Uncomment this to disable session persistence across Tomcat restarts -->
+  <!--
+  <Manager pathname="" />
+  -->
+
+  <Valve className="org.apache.catalina.authenticator.BasicAuthenticator"
+         jaspicCallbackHandlerClass="org.apache.tomee.security.provider.CallbackHandlerImpl"
+  />
+</Context>