Skip to content

Commit

Permalink
Merge pull request #102 from Central-MakeUs/dev
Browse files Browse the repository at this point in the history
[Feature] 카카오 로그인 구현
  • Loading branch information
dainnida authored Feb 15, 2025
2 parents b7a6564 + 9b1630d commit 6d573a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
apple.cid: ${{ secrets.OAUTH_APPLE_CID }}
apple.tid: ${{ secrets.OAUTH_APPLE_TID }}
apple.kid: ${{ secrets.OAUTH_APPLE_KID }}
spring.security.oauth2.client.registration.kakao.client-id: ${{ secrets.OAUTH_KAKAO_ID }}
spring.security.oauth2.client.registration.kakao.client-secret: ${{ secrets.OAUTH_KAKAO_SECRET }}
spring.security.oauth2.client.registration.kakao.redirect-uri: ${{ secrets.SERVER_HTTPS_URL }}/login/oauth2/code/kakao


# 실행 속도 향상을 위한 Gradle 종속성 캐싱
Expand Down
15 changes: 15 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,25 @@ spring:
scope:
- name
- email
kakao:
client-name: kakao
client-id: ${OAUTH_KAKAO_ID}
client-secret: ${OAUTH_KAKAO_SECRET}
redirect-uri: ${OAUTH_KAKAO_REDIRECT}
client-authentication-method: post
authorization-grant-type: authorization_code
scope:
# - profile_nickname
- account_email
provider:
apple:
authorization-uri: https://appleid.apple.com/auth/authorize?response_mode=form_post
token-uri: https://appleid.apple.com/auth/token
kakao:
authorization-uri: https://kauth.kakao.com/oauth/authorize
token-uri: https://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id

apple:
url: https://appleid.apple.com
Expand Down

0 comments on commit 6d573a5

Please sign in to comment.