spring-boot-security-login
spring-boot-security-login copied to clipboard
{"path":"/error","error":"Unauthorized","message":"Full authentication is required to access this resource","status":401}
i always face this problem http://127.0.0.1:8080/api/auth/all
{"path":"/error","error":"Unauthorized","message":"Full authentication is required to access this resource","status":401}
same error
how to fix it
There is no route: api/auth/all. We have api/test/all.
same error
Tried with /api/v1/auth/signup. Got same error, since filters are still working, even for .permitAll() routes. Adding this to JwtAuthFilter helped.
@Override
protected boolean shouldNotFilter(HttpServletRequest request) throws ServletException {
String path = request.getRequestURI();
return path.startsWith("/api/v1/auth/");
}
where to implement thiscode ?