본문 바로가기
728x90
반응형

로그인4

[Security] 로그인과 권한 설정 주의 : Spring Security 5.7+ (Spring Boot 2.7+)부터는 WebSecurityConfigurer이 Deprecated 되었다. 2022.09.05 - [Spring/Security] - [Security] WebSecurityConfigurerAdapter Deprecated [Security] WebSecurityConfigurerAdapter Deprecated 버전 Java 11 Spring boot 2.7.3 Deprecated Spring Security 5.7.0-M2부터 Deprcated 되었다. (SpringBoot 기준 2.7 이후) WebSecurityConfigurerAdapter : WebSecurityConfigurer의 인스턴스를 생성하여 Abstra.. 2022. 11. 1.
[JWT] JWT 인증, 인가 필터 생성 / 회원 정보 가져오기 / 인증 객체로 로그인 처리 (2) 목표 회원가입 기능 로그인 기능 로그인 시 JWT 토큰 발급 JWT 인증, 인가 필터 생성 JWT의 회원 정보 가져오기 인증 객체로 로그인 처리 이전 글 - 회원가입 / 로그인 / JWT 토큰 발급 2022.10.28 - [Spring/Security] - [JWT] 회원가입 / 로그인 / 토큰 발급 (1) [JWT] 회원가입 / 로그인 / 토큰 발급 (1) 목표 회원가입 기능 로그인 기능 로그인 시 JWT 토큰 발급 JWT 인증, 인가 필터 생성 JWT의 회원 정보 가져오기 또 다른 로그인 기능 환경 java 17 spring boot 2.7 gradle 7.5 환경 설정 1. build.gradle - Web,.. twer.tistory.com JWT 인증, 인가 필터 생성 인증을 위한 객체, 서비스.. 2022. 10. 28.
[JWT] 회원가입 / 로그인 / 토큰 발급 (1) 목표 회원가입 기능 로그인 기능 로그인 시 JWT 토큰 발급 JWT 인증, 인가 필터 생성 JWT의 회원 정보 가져오기 환경 java 17 spring boot 2.7 gradle 7.5 환경 설정 1. build.gradle - Web, Security, Lombok, JPA, mysql-connector, jwt 의존성을 추가합니다. dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boo.. 2022. 10. 28.
[Spring Interceptor] 커스텀 어노테이션과 Intercepter 구현 목표 : 커스텀 어노테이션을 만들고, Interceptor에서 어노테이션 여부를 확인한다. Spring Interceptor Spring 영역 안에서 Controller가 실행 되기 전, 후 처리에 대한 기능들을 적용한다. Spring 영역 안에서 동작하므로, Spring Context 영역에 접근할 수 있다. => Spring Bean 객체에 접근 가능하다. 여러 개의 Interceptor 정의가 가능하다. 로그인 체크, 권한 체크, 실행시간 계산 등의 기능을 처리한다. Interceptor의 실행 메소드 preHandler() : Controller 실행 전 postHandler() : Controller 실행 후, View Rendering 실행 전 afterCompletion() : View Re.. 2021. 8. 27.
LIST