diff options
author | Vitaly Takmazov | 2017-01-19 23:11:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-01-19 23:11:46 +0300 |
commit | 0736bfd7a02c1c3991be475fae5f70607bf3070f (patch) | |
tree | aad3eda7848cb4fb292bbaad23bb18d1764d5cfd /juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java | |
parent | ed993af2e0e95b9af8c949fc0a5c812e93731c14 (diff) |
juick-api: unauthorized response must be 401
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java | 20 |
1 files changed, 0 insertions, 20 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/ForbiddenStatusAuthenticationEntryPoint.java deleted file mode 100644 index 92b206dd..00000000 --- a/juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.juick.server.security; - -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; - -/** - * Created by vitalyster on 25.11.2016. - */ -public class ForbiddenStatusAuthenticationEntryPoint implements AuthenticationEntryPoint { - @Override - public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) - throws IOException, ServletException { - response.setStatus(HttpServletResponse.SC_FORBIDDEN); - } -} |