Skip to content

Commit

Permalink
#97 - Configuration for integrating Kakao login functionality
Browse files Browse the repository at this point in the history
client-id and client-secret are confidential information, so do not include the actual values. Instead, configure them to be set later via external environment variables.
  • Loading branch information
laphayen committed Jul 27, 2024
1 parent 3f7a264 commit deaf8c4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ spring:
detection-strategy: annotated
thymeleaf3:
decoupled-logic: true
security:
oauth2:
client:
registration:
kakao:
client-id: ${KAKAO_OAUTH_CLIENT_ID}
client-secret: ${KAKAO_OAUTH_CLIENT_SECRET}
authorization-grant-type: authorization_code
redirect-uri: "{baseUrl}/login/oauth2/code/kakao"
client-authentication-method: POST
provider:
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

---

Expand Down

0 comments on commit deaf8c4

Please sign in to comment.