@Throws(IOException::class, ServletException::class) fun commence( request: HttpServletRequest?, response: HttpServletResponse, arg2: AuthenticationException? ) { log.debug("Pre-authenticated entry point called. Rejecting access") response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Access Denied") }
Always returns a 401 error code to the client .