Merge pull request #3424 from sebastienblanc/KEYCLOAK-3669

KEYCLOAK-3669: Fix Tomcat Adapter for 8.5.5
This commit is contained in:
Stian Thorgersen 2016-10-28 06:45:01 +02:00 committed by GitHub
commit 3e5f490882

View file

@ -39,9 +39,20 @@ import java.util.List;
* @version $Revision: 1 $
*/
public class KeycloakAuthenticatorValve extends AbstractKeycloakAuthenticatorValve {
/**
* Method called by Tomcat < 8.5.5
*/
public boolean authenticate(Request request, HttpServletResponse response) throws IOException {
return authenticateInternal(request, response, request.getContext().getLoginConfig());
}
/**
* Method called by Tomcat >= 8.5.5
*/
protected boolean doAuthenticate(Request request, HttpServletResponse response) throws IOException {
return this.authenticate(request, response);
}
@Override
protected boolean forwardToErrorPageInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException {