Spring Security 5에서 OAuth2를 사용한다.
2850 단어 spring-securityspring-bootspring
Google이나 Facebook으로 인증하게 됩니다만, 이번은 Google로 해 보겠습니다.
환경
Eclipse Version: 2019-03 (4.11.0)
자바 11
Spring Boot 2.1.5
Spring Security 5.1.5
이전 준비
Google Cloud Platform 콘솔 에서 필요한 정보를 설정합니다.
아래 화면이 표시되면 '만들기' 링크를 클릭하십시오.

아래의 입력화면이 표시되므로 프로젝트명을 적당히 붙이고 「작성」을 누르십시오.

작성이 끝나면 메뉴에서 API 및 서비스 -> 자격 증명을 선택합니다.

아래 화면이 표시되면 OAuth 동의 화면 설정 선택
필요한 정보를 아래 화면에 입력하고 "저장"을 누르십시오.

아래 화면이 나타나면 "자격 증명 만들기"-> "OAuth 클라이언트 ID"를 선택합니다.

아래 화면이 표시되므로 필요한 정보를 입력하고 "만들기"를 누르십시오.

작성이 끝나면 다음 화면이 표시되므로 클라이언트 ID와 클라이언트 비밀을 삼가합니다.

새 프로젝트 만들기
- "다음"을 누르십시오
Reference
이 문제에 관하여(Spring Security 5에서 OAuth2를 사용한다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ryotaro76/items/77093522b6f70f7eb1d1텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)