Repository: tomee Updated Branches: refs/heads/master 1ef55b796 -> 12c428158
TOMEE-2170 tomcat requires a preemptiveAuthentication= in the context.xml Not sure how this worked before. But for the LoginModules to work one must either have a <security-constraint> in web.xml or tell Tomcat to enable JAAS for ALL requests -> preemptiveAuthentication="true" Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/d8467b26 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d8467b26 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d8467b26 Branch: refs/heads/master Commit: d8467b265fdffb79ebc5efab8b560e5b7dca4106 Parents: 1ef55b7 Author: Mark Struberg <strub...@apache.org> Authored: Mon Feb 19 13:22:08 2018 +0100 Committer: Jonathan Gallimore <j...@jrg.me.uk> Committed: Thu Mar 1 23:03:04 2018 +0000 ---------------------------------------------------------------------- tomee/tomee-webaccess/src/test/resources/test/context.xml | 2 +- tomee/tomee-webaccess/src/test/resources/test/login.config | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/d8467b26/tomee/tomee-webaccess/src/test/resources/test/context.xml ---------------------------------------------------------------------- diff --git a/tomee/tomee-webaccess/src/test/resources/test/context.xml b/tomee/tomee-webaccess/src/test/resources/test/context.xml index 9cecec6..e457304 100644 --- a/tomee/tomee-webaccess/src/test/resources/test/context.xml +++ b/tomee/tomee-webaccess/src/test/resources/test/context.xml @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. --> -<Context antiJARLocking="true" path="/webaccess"> +<Context antiJARLocking="true" path="/webaccess" preemptiveAuthentication="true"> <Realm className="org.apache.catalina.realm.JAASRealm" appName="ScriptLogin" userClassNames="org.apache.openejb.core.security.jaas.UserPrincipal" roleClassNames="org.apache.openejb.core.security.jaas.GroupPrincipal"> http://git-wip-us.apache.org/repos/asf/tomee/blob/d8467b26/tomee/tomee-webaccess/src/test/resources/test/login.config ---------------------------------------------------------------------- diff --git a/tomee/tomee-webaccess/src/test/resources/test/login.config b/tomee/tomee-webaccess/src/test/resources/test/login.config index 1a475e7..aa5b229 100644 --- a/tomee/tomee-webaccess/src/test/resources/test/login.config +++ b/tomee/tomee-webaccess/src/test/resources/test/login.config @@ -1,5 +1,5 @@ ScriptLogin { org.apache.openejb.core.security.jaas.ScriptLoginModule required - engineName="js" - scriptURI="loginScript.js"; + engineName="js" + scriptURI="loginScript.js"; };