From 0736bfd7a02c1c3991be475fae5f70607bf3070f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 19 Jan 2017 23:11:46 +0300 Subject: juick-api: unauthorized response must be 401 --- .../main/java/com/juick/api/configuration/ApiSecurityConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-api/src/main/java/com/juick') 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 2d3540ab..48d79e27 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.ForbiddenStatusAuthenticationEntryPoint; +import com.juick.server.security.NotAuthorizedAuthenticationEntryPoint; 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 ForbiddenStatusAuthenticationEntryPoint getJuickAuthenticationEntryPoint() { - return new ForbiddenStatusAuthenticationEntryPoint(); + public NotAuthorizedAuthenticationEntryPoint getJuickAuthenticationEntryPoint() { + return new NotAuthorizedAuthenticationEntryPoint(); } @Bean -- cgit v1.2.3