- 네이버 로그인 API 공식 문서
https://developers.naver.com/products/login/api/api.md
네이버 로그인 - INTRO
환영합니다 네이버 로그인의 올바른 적용방법을 알아볼까요? 네이버 로그인을 통해 신규 회원을 늘리고, 기존 회원은 간편하게 로그인하게 하려면 제대로 적용하는 것이 중요합니다! 이에 올바
developers.naver.com
네이버 로그인 API 신청
네이버 개발자센터 -> 네이버 로그인 API
ClientID와 Client Secret를 스프링 부트 application.properties OAuth2 변수에 설정하면 된다.
변수 설정
- application.perperties
#registration
spring.security.oauth2.client.registration.naver.client-name=naver
spring.security.oauth2.client.registration.naver.client-id=
spring.security.oauth2.client.registration.naver.client-secret=
spring.security.oauth2.client.registration.naver.redirect-uri=http://localhost:8080/login/oauth2/code/naver
spring.security.oauth2.client.registration.naver.authorization-grant-type=authorization_code
spring.security.oauth2.client.registration.naver.scope=name,email
#provider
spring.security.oauth2.client.provider.naver.authorization-uri=https://nid.naver.com/oauth2.0/authorize
spring.security.oauth2.client.provider.naver.token-uri=https://nid.naver.com/oauth2.0/token
spring.security.oauth2.client.provider.naver.user-info-uri=https://openapi.naver.com/v1/nid/me
spring.security.oauth2.client.provider.naver.user-name-attribute=response
출처
https://www.devyummi.com/page?id=6692849226e5904a67bb06a3
개발자 유미 | 커뮤니티
www.devyummi.com
'Spring Security > OAuth2' 카테고리의 다른 글
스프링 OAuth2 클라이언트 세션 8 : OAuth2UserService 응답 받기 (1) | 2025.01.08 |
---|---|
스프링 OAuth2 클라이언트 세션 7 : 구글 소셜 로그인 신청 (0) | 2025.01.08 |
스프링 OAuth2 클라이언트 세션 5 : SecurityConfig 등록 (0) | 2025.01.08 |
스프링 OAuth2 클라이언트 세션 4 : OAuth2 변수 역할 (0) | 2025.01.07 |
스프링 OAuth2 클라이언트 세션 3 : 동작 원리 (2) | 2025.01.07 |