Springboot

[Springboot] 39. OAuth 2.0 (1단계-Kakao Developers 사용하기)

Song hyun 2024. 8. 14. 15:24
728x90
반응형

[Springboot] 39. OAuth 2.0 (1단계-Kakao Developers 사용하기)

 

1. OAuth 2.0이란?

 

https://datatracker.ietf.org/doc/html/rfc6749

 

RFC 6749: The OAuth 2.0 Authorization Framework

The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowi

datatracker.ietf.org

 

https://developers.kakao.com/

 

Kakao Developers

카카오 API를 활용하여 다양한 어플리케이션을 개발해보세요. 카카오 로그인, 메시지 보내기, 친구 API, 인공지능 API 등을 제공합니다.

developers.kakao.com

 

 

2. OAuth 2.0의 구동 원리

(1) Autorization Code Grant

(2) Implicit Grant

(3) Resource Owner Password Credentials Grant

(4) Client Credentials Grant

 

 

3. Kakao Developer 사용하기

(1) 내 애플리케이션 항목에 등록하기

-Kakao Developer에 로그인 후, 내 애플리케이션에 들어가기

-내 애플리케이션 추가하기 (등록하기)

 

 

(2) Web 플랫폼 등록하기

-[플랫폼]->[웹 플랫폼 등록]->도메인 주소 입력하기

(ex: http://localhost:8080)

 

 

(3) 사이트 도메인 - 활성화 설정하기

-[활성화 설정] -> ON 처리하기

 

 

(4) Redirect URI 설정하기

 

 

(5) 동의 항목 설정하기

-닉네임, 프로필 사진 항목 설정하기

 

 

(6) 리소스 다운로드하기

-[문서] - [카카오 로그인] - [REST API]

-문서로 저장하

 

https://developers.kakao.com/docs/latest/ko/kakaologin/callback

 

Kakao Developers

카카오 API를 활용하여 다양한 어플리케이션을 개발해보세요. 카카오 로그인, 메시지 보내기, 친구 API, 인공지능 API 등을 제공합니다.

developers.kakao.com

 

 

 

 

 

(7) 앱 키 복사하기

 

(8) 인가 코드 받기

728x90
반응형