시큐리티 필터2 [에러모음] com.auth0.jwt.exceptions.AlgorithmMismatchException: The provided Algorithm doesn't match the one defined in the JWT's Header 에러 설명 자바 프로젝트에서 로그인을 구현하기 위해 시큐리티 필터를 통해 JWT 토큰을 생성하고 확인하는 과정에서 생긴 에러 JwtAuthenticationFilter.java @RequiredArgsConstructor public class JwtAuthenticationFilter extends UsernamePasswordAuthenticationFilter { private final AuthenticationManager authenticationManager; // /login 요청을 하면 사용자 정보를 인증하기 위해 실행되는 함수 @Override public Authentication attemptAuthentication(HttpServletRequest request, HttpServ.. 2023. 3. 21. [에러모음] Failed to evaluate expression 'hasRole('ROLE_USER') or hasRole('ROLE_MANAGER') or hasROLE('ROLE_ADMIN')' 에러 설명 자바 프로젝트에서 SecurityConfig.java를 통해 시큐리티 필터를 거쳐 웹 페이지 접근할 때 생긴 에러 @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) @RequiredArgsConstructor public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.sessionManagement().sessionC.. 2023. 3. 19. 이전 1 다음