aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/security/NotAuthorizedAuthenticationEntryPoint.java (renamed from juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java)4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java b/juick-server/src/main/java/com/juick/server/security/NotAuthorizedAuthenticationEntryPoint.java
index 92b206dd..d9dc6d61 100644
--- a/juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java
+++ b/juick-server/src/main/java/com/juick/server/security/NotAuthorizedAuthenticationEntryPoint.java
@@ -11,10 +11,10 @@ import java.io.IOException;
/**
* Created by vitalyster on 25.11.2016.
*/
-public class ForbiddenStatusAuthenticationEntryPoint implements AuthenticationEntryPoint {
+public class NotAuthorizedAuthenticationEntryPoint implements AuthenticationEntryPoint {
@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)
throws IOException, ServletException {
- response.setStatus(HttpServletResponse.SC_FORBIDDEN);
+ response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
}
}