feat: 유저 저장 확인 위해 h2 관련 설정
This commit is contained in:
@@ -17,7 +17,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http.oauth2Login() // OAuth2 로그인 설정 시작점
|
||||
http.csrf().disable()
|
||||
.headers().frameOptions().disable()
|
||||
.and()
|
||||
.oauth2Login() // OAuth2 로그인 설정 시작점
|
||||
.userInfoEndpoint() // OAuth2 로그인 성공 이후 사용자 정보를 가져올 때 설정 담당
|
||||
.userService(oAuthService); // OAuth2 로그인 성공 시, 후작업을 진행할 UserService 인터페이스 구현체 등록
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user