All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.auth0.spring.security.api.JwtAuthenticationEntryPoint Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
package com.auth0.spring.security.api;

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;

public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint {
    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
        response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy