aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-10 22:58:20 +0700
committerGravatar Vitaly Takmazov2016-12-11 18:24:37 +0300
commitb1861f326a834865f1d700745dfb5f1b1596ba1f (patch)
tree769a8b09b0e9a07c84605db46c9c18f5ba3c66ed
parent0cbdc4ecb927b7ab068e5833caefbba65c9aa87a (diff)
Api authorization entry point renamed
-rw-r--r--juick-api/src/main/java/com/juick/api/configuration/ApiSecurityConfig.java6
-rw-r--r--juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java (renamed from juick-server/src/main/java/com/juick/server/security/JuickAuthenticationEntryPoint.java)2
2 files changed, 4 insertions, 4 deletions
diff --git a/juick-api/src/main/java/com/juick/api/configuration/ApiSecurityConfig.java b/juick-api/src/main/java/com/juick/api/configuration/ApiSecurityConfig.java
index 5c95e416..2d3540ab 100644
--- a/juick-api/src/main/java/com/juick/api/configuration/ApiSecurityConfig.java
+++ b/juick-api/src/main/java/com/juick/api/configuration/ApiSecurityConfig.java
@@ -1,6 +1,6 @@
package com.juick.api.configuration;
-import com.juick.server.security.JuickAuthenticationEntryPoint;
+import com.juick.server.security.ForbiddenStatusAuthenticationEntryPoint;
import com.juick.service.UserService;
import com.juick.service.security.JuickUserDetailsService;
import com.juick.service.security.deprecated.RequestParamHashRememberMeServices;
@@ -82,8 +82,8 @@ public class ApiSecurityConfig extends WebSecurityConfigurerAdapter {
}
@Bean
- public JuickAuthenticationEntryPoint getJuickAuthenticationEntryPoint() {
- return new JuickAuthenticationEntryPoint();
+ public ForbiddenStatusAuthenticationEntryPoint getJuickAuthenticationEntryPoint() {
+ return new ForbiddenStatusAuthenticationEntryPoint();
}
@Bean
diff --git a/juick-server/src/main/java/com/juick/server/security/JuickAuthenticationEntryPoint.java b/juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java
index 4c73196d..92b206dd 100644
--- a/juick-server/src/main/java/com/juick/server/security/JuickAuthenticationEntryPoint.java
+++ b/juick-server/src/main/java/com/juick/server/security/ForbiddenStatusAuthenticationEntryPoint.java
@@ -11,7 +11,7 @@ import java.io.IOException;
/**
* Created by vitalyster on 25.11.2016.
*/
-public class JuickAuthenticationEntryPoint implements AuthenticationEntryPoint {
+public class ForbiddenStatusAuthenticationEntryPoint implements AuthenticationEntryPoint {
@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)
throws IOException, ServletException {