반응형 Spring Security5 Spring Starter security 2.x 3.x 설정 방식 차이 이번 포스팅에서는 Spring 2.x 와 3.x 의 설정 방식의 차이에 대해서 알아보겠습니다. JWT 를 쓰는 환경이고, 같은 설정 코드를 비교해서 어떤 점이 달라졌는지 확인해보겠습니다. 2.x 설정 코드 입니다. @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) @RequiredArgsConstructor public class SecurityConfig { private final TokenProvider tokenProvider; private final JwtAuthenticationEntryPoint jwtAtuthenticationEntryPoint; private final JwtAccess.. Programing/Spring Security 2023. 11. 21. SpringBoot + JWT + Security + JPA 인증 구현, JWT란? 해당 포스팅은 인프런의 무료강의를 참고하여 작성되었습니다. Link: https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8-jwt/dashboard 이해하기 쉽게 설명되어 있으니 참고하시면 좋을 것 같습니다. Link: https://jwt.io/ JWT.IO JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. jwt.io 1. JWT (Json Web Tokens) 란? JWT는 RFC 7519 웹 표준으로 지정된 JSON 객체를 사용해서 토큰 자체에 정보를 저장.. Programing/Springboot 2022. 11. 14. spring boot security login error message 한글 설정 spring boot security login error message 한글 설정 spring boot 프로젝트에 spring security 적용방법은 아래의 link를 참고하세요. link : https://aljjabaegi.tistory.com/507 springboot 2.x + spring security mariadb login 구현 WebSecurityConfigurerAdapter, configAuthentication 사용 springboot 2.x + spring security mariadb login 구현 WebSecurityConfigurerAdapter, configAuthentication 사용 최대한 간단한 방법으로 springboot 2.x 프로젝트에 spring sec.. Programing/Spring Security 2019. 12. 6. springboot 2.x spring security 중복로그인 방지, logout 시 session 삭제 안될때 처리 springboot 2.x spring security 중복로그인 방지, logout 시 session 삭제 안될때 처리 기본적인 로그인 처리 방법에 대해서는 아래의 link를 참고하세요. link : springboot 2.x + spring security mariadb login 구현 WebSecurityConfigurerAdapter, configAuthentication 사용 중복 로그인 처리를 하기 위해서는 위의 link에서 구현한 WebSecurityConfig 클래스를 수정해주면 됩니다. configure 메소드내에 .logout() 을 수정하고 .sessionManagement()를 추가해줍니다. .and().logout() .logoutUrl("/logout") /* 로그아웃 url*/.. Programing/Spring Security 2019. 12. 4. springboot 2.x + spring security mariadb login 구현 WebSecurityConfigurerAdapter, configAuthentication 사용 springboot 2.x + spring security mariadb login 구현 WebSecurityConfigurerAdapter, configAuthentication 사용 최대한 간단한 방법으로 springboot 2.x 프로젝트에 spring security 를 적용해보겠습니다. spring boot 프로젝트 생성은 아래의 link를 참고하세요. link : Eclipse Spring boot Gradle 프로젝트 간단 생성 방법 [Spec] Springboot version : 2.2.2 gradle database : mysql 우선 로그인에 필요한 유저정보와 권한 정보 테이블이 필요합니다. spring security 에서 필요한 기본 정보만 있는 테이블입니다. 기존 테이블을 활용하.. Programing/Spring Security 2019. 12. 4. 이전 1 다음 💲 추천 글 반응형