Total Complexity | 1 |
Total Lines | 6 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package unicon.matthews.security; |
||
20 | @Component |
||
21 | public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint { |
||
22 | @Override |
||
23 | public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) |
||
24 | throws IOException, ServletException { |
||
25 | response.sendError(HttpStatus.UNAUTHORIZED.value(), "Unauthorized"); |
||
26 | } |
||
28 |