aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-01-19 23:11:46 +0300
committerGravatar Vitaly Takmazov2017-01-19 23:11:46 +0300
commit0736bfd7a02c1c3991be475fae5f70607bf3070f (patch)
treeaad3eda7848cb4fb292bbaad23bb18d1764d5cfd /juick-server/src/main/java/com/juick
parented993af2e0e95b9af8c949fc0a5c812e93731c14 (diff)
juick-api: unauthorized response must be 401
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-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);
}
}