스프링 OAuth2 클라이언트 세션 7 : 구글 소셜 로그인 신청

2025. 1. 8. 15:42·Spring Security/OAuth2
  • 구글 GCP(aws와 같이 구글에서 제공하는 클라우드 서비스)

https://cloud.google.com/free/?utm_source=google&utm_medium=cpc&utm_campaign=japac-KR-all-en-dr-BKWS-all-core-trial-EXA-dr-1605216&utm_content=text-ad-none-none-DEV_c-CRE_668690472449-ADGP_Hybrid+

 

https://cloud.google.com/free/?utm_campaign=japac-KR-all-en-dr-BKWS-all-core-trial-EXA-dr-1605216&utm_content=text-ad-none-none-DEV_c-CRE_668690472449-ADGP_Hybrid+&utm_medium=cpc&utm_source=google

 

cloud.google.com



구글 OAuth2 클라이언트 신청

구글 OAuth2 소셜 로그인을 사용하기 위해서는 GCP 가입이 필수적이다.

 

"API 사용자 인증 정보" 를 검색

 

검색을 통해 "API 및 서비스"에 접근하면 좌측 카테고리에서 "OAuth 동의 화면"과 "사용자 인증 정보" 설정을 통해 사용할 수 있다.


변수 설정

  • application.properties
#registration
spring.security.oauth2.client.registration.google.client-name=google
spring.security.oauth2.client.registration.google.client-id=
spring.security.oauth2.client.registration.google.client-secret=
spring.security.oauth2.client.registration.google.redirect-uri=http://localhost:8080/login/oauth2/code/google
spring.security.oauth2.client.registration.google.authorization-grant-type=authorization_code
spring.security.oauth2.client.registration.google.scope=profile,email

출처

https://www.devyummi.com/page?id=669288757318dd9c7ccf1b94

 

개발자 유미 | 커뮤니티

 

www.devyummi.com

 

'Spring Security > OAuth2' 카테고리의 다른 글

스프링 OAuth2 클라이언트 세션 9 : 응답 데이터로 로그인 완료  (1) 2025.01.08
스프링 OAuth2 클라이언트 세션 8 : OAuth2UserService 응답 받기  (1) 2025.01.08
스프링 OAuth2 클라이언트 세션 6 : 네이버 소셜 로그인 신청  (0) 2025.01.08
스프링 OAuth2 클라이언트 세션 5 : SecurityConfig 등록  (0) 2025.01.08
스프링 OAuth2 클라이언트 세션 4 : OAuth2 변수 역할  (0) 2025.01.07
'Spring Security/OAuth2' 카테고리의 다른 글
  • 스프링 OAuth2 클라이언트 세션 9 : 응답 데이터로 로그인 완료
  • 스프링 OAuth2 클라이언트 세션 8 : OAuth2UserService 응답 받기
  • 스프링 OAuth2 클라이언트 세션 6 : 네이버 소셜 로그인 신청
  • 스프링 OAuth2 클라이언트 세션 5 : SecurityConfig 등록
jhyngu
jhyngu
취업하자.
    티스토리 홈
    |
  • jhyngu
    jhyngu
    jhyngu
  • 글쓰기 관리
  • 전체
    오늘
    어제
    • Dev (151)
      • Java (2)
      • Spring (51)
      • Spring Security (39)
        • JWT (22)
        • OAuth2 (17)
      • Kotlin (2)
      • React (6)
      • Coding Test (28)
      • DB (0)
      • Git (5)
      • Linux (14)
      • docker (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Spring Framework
    Linux
    react
    MariaDB
    알고리즘
    Spring Boot
    oauth2
    백준
    git
    Postman
    api client
    Spring
    JavaScript
    spring web
    mybatis
    OAuth2
    MVC
    JDBC
    Spring Security
    JWT
  • hELLO· Designed By정상우.v4.10.3
jhyngu
스프링 OAuth2 클라이언트 세션 7 : 구글 소셜 로그인 신청
상단으로

티스토리툴바