From b549d355ad496e5a73743b225bc1a5ce94ecf636 Mon Sep 17 00:00:00 2001 From: Roger Ripley Date: Wed, 21 Jan 2015 15:56:38 -0800 Subject: [PATCH] For the Tomcat 8 MixedAuthenticator, a dummy LoginConfig object was being created and used instead of pulling LoginConfig out of the context. --- .../src/main/java/waffle/apache/MixedAuthenticator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/JNA/waffle-tomcat8/src/main/java/waffle/apache/MixedAuthenticator.java b/Source/JNA/waffle-tomcat8/src/main/java/waffle/apache/MixedAuthenticator.java index 535b701440..fee8c77a89 100644 --- a/Source/JNA/waffle-tomcat8/src/main/java/waffle/apache/MixedAuthenticator.java +++ b/Source/JNA/waffle-tomcat8/src/main/java/waffle/apache/MixedAuthenticator.java @@ -96,9 +96,7 @@ public boolean authenticate(final Request request, final HttpServletResponse res final boolean ntlmPost = authorizationHeader.isNtlmType1PostAuthorizationHeader(); this.log.debug("authorization: {}, ntlm post: {}", authorizationHeader, Boolean.valueOf(ntlmPost)); - final LoginConfig loginConfig = new LoginConfig(); - loginConfig.setErrorPage("error.html"); - loginConfig.setLoginPage("login.html"); + final LoginConfig loginConfig = context.getLoginConfig(); if (principal != null && !ntlmPost) { this.log.debug("previously authenticated user: {}", principal.getName());