facebook 로그인

    aAuth2 client를 통해 facebook 로그인하기

    1 . 환경설정 POM.XML 을 다음과 같이 설정해줍니다. org.springframework.boot spring-boot-starter-oauth2-client application.yml에 다음과 같이 설정한다. oauth2: client: registration: facebook: client-id: facebook에서 받은 id client-secret: facebook에서 받은 시크릿키 scope: - public_profile # 회사마다 다름 - email 2. SecurtyConfig.java @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.authoriz..