Skip to content

Commit

Permalink
Merge pull request #3 from Trendy-Devs/feature/jisoo
Browse files Browse the repository at this point in the history
athentication filter jwt 변경 token 헤더에 담기, entity protected 삭제
  • Loading branch information
kimjiisuuu authored Jul 4, 2024
2 parents 63bc6e6 + b0aa9f7 commit bbac554
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
package com.example.healthylife.config;

import com.example.healthylife.config.security.jwt.JwtAuthenticationFilter;
import lombok.RequiredArgsConstructor;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.SecurityConfigurerAdapter;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.DefaultSecurityFilterChain;
import org.springframework.security.web.authentication.logout.LogoutFilter;

//@EnableWebSecurity
//@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
package com.example.healthylife.config.security.jwt;
package com.example.healthylife.config.jwt;

import com.example.healthylife.entity.UserEntity;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.log.LogMessage;
import org.springframework.lang.Nullable;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.AuthenticationServiceException;
import org.springframework.security.authentication.InternalAuthenticationServiceException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import org.springframework.security.web.util.matcher.RequestMatcher;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
import org.springframework.web.filter.GenericFilterBean;
import org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter;
import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.healthylife.config.security.jwt;
package com.example.healthylife.config.jwt;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.healthylife.config.security.jwt;
package com.example.healthylife.config.jwt;

import com.example.healthylife.config.security.MyUserDetails;
import com.example.healthylife.entity.UserEntity;
Expand Down

0 comments on commit bbac554

Please sign in to comment.