kakao
1. ์ธ๊ฐ ์ฝ๋ ๋ฐ๊ธฐ
2. ํ ํฐ๋ฐ๊ธฐ
post https://kauth.kakao.com/oauth/token
grant_type : authorization_code
client_id : ํด๋ผ์ด์ธํธ ์์ด๋
redirect_uri : ๋ฆฌํด url
code : ์ธ๊ฐ ์ฝ๋
3. ์ ๋ณด ์กฐํ
post https://kapi.kakao.com/v2/user/me
bearer token
ex)
data: {
id: 1,
connected_at: '2023-07-31T09:46:36Z',
properties: {
nickname: '',
profile_image: '',
thumbnail_image: ''
},
kakao_account: {
profile_nickname_needs_agreement: false,
profile_image_needs_agreement: false,
profile: [Object],
name_needs_agreement: false,
name: '',
has_email: true,
email_needs_agreement: false,
is_email_valid: true,
is_email_verified: true,
email: '',
has_phone_number: true,
phone_number_needs_agreement: false,
phone_number: '+82',
has_birthyear: true,
birthyear_needs_agreement: false,
birthyear: '',
has_birthday: true,
birthday_needs_agreement: false,
birthday: '',
birthday_type: 'SOLAR'
}
}
naver
1. ์ธ๊ฐ ์ฝ๋ ๋ฐ๊ธฐ
2. ํ ํฐ ๋ฐ๊ธฐ
get https://nid.naver.com/oauth2.0/token?grant_type=authorization_code&client_id=n0cxfGmaN5L13rcILyYp&client_secret=์ํฌ๋ฆฟํค
3. ์ ๋ณด ๋ฐ๊ธฐ
post https://openapi.naver.com/v1/nid/me
bearer token
ex)
{
"resultcode": "00",
"message": "success",
"response": {
"id": "",
"nickname": "summer",
"age": "",
"gender": "",
"email": "",
"mobile": "",
"mobile_e164": "",
"birthday": "",
"birthyear": ""
}
}
1. ์ธ๊ฐ ์ฝ๋ ๋ฐ๊ธฐ
(scpoe๊ฐ ๋ฐ์์ฌ ์ ๋ณด ๋ชฉ๋ก)
2. ํ ํฐ ๋ฐ๊ธฐ
post https://oauth2.googleapis.com/token
code : ์ธ๊ฐ์ฝ๋ (%2F ⇒ / ๋ก ์นํํด์ผํจ)
client_id : ํด๋ผ์ด์ธํธ ์์ด๋
client_secret : ํด๋ผ์ด์ธํธ ํค
redirect_uri : uri
grant_type: authorization_code
3. ํ ํฐ์ผ๋ก ์ ๋ณด ๋ฐ๊ธฐ
์ด๋ฆ, ์ด๋ฉ์ผ, ์์ ์์ด๋
์์
{
"iss": "",
"azp": "",
"aud": "",
"sub": "",
"email": "",
"email_verified": true,
"at_hash": "",
"name": "",
"picture": "",
"given_name": "",
"family_name": "",
"locale": "",
"iat": ,
"exp":
}