package org.pac4j.springframework.security.web;

import org.pac4j.core.exception.TechnicalException;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * This entry point redirects returns an error if called.
 *
 * @author Jerome Leleu
 * @since 1.0.0
 */
public final class Pac4jEntryPoint implements AuthenticationEntryPoint {

    @Override
    public void commence(final HttpServletRequest request, final HttpServletResponse response,
                         final AuthenticationException authException) throws IOException, ServletException {

        throw new TechnicalException("The pac4j entry point should never be called: you must define a pac4j 'securityFilter' or the pac4j 'callbackFilter in the corresponding security:http section");
    }
}

@@ -900,17 +900,17 @@
  pac4j '
-s
+S
 ecurityF
@@ -930,17 +930,17 @@
  pac4j '
-c
+C
 allbackF
@@ -944,16 +944,17 @@
 ckFilter
+'
  in the 

update error message