Skip to content

[센] Chapter 9. Spring Security - JWT, OAuth#141

Open
sekong11 wants to merge 1 commit into
sen/mainfrom
sen/#126
Open

[센] Chapter 9. Spring Security - JWT, OAuth#141
sekong11 wants to merge 1 commit into
sen/mainfrom
sen/#126

Conversation

@sekong11
Copy link
Copy Markdown

✏️ 작업 내용

스크린샷 2026-05-31 오후 11 27 17 image image

#️⃣ 연관된 이슈

closes #126


💡 함께 공유하고 싶은 부분

해당 주차를 공부하면서 함께 이야기하고 싶은 주제를 남겨주세요.

(어려웠던 부분과 해결 과정, 핵심 코드, 참고한 자료 등)


🤔 질문

해당 주차 워크북을 공부하면서 궁금했던 질문들을 남겨주세요.


✅ 워크북 체크리스트

  • 모든 핵심 키워드 정리를 마쳤나요?
  • 핵심 키워드에 대해 완벽히 이해하셨나요?
  • 이론 학습 이후 직접 실습을 해보는 시간을 가졌나요?
  • 미션을 수행하셨나요?
  • 미션을 기록하셨나요?

✅ 컨벤션 체크리스트

  • 디렉토리 구조 컨벤션을 잘 지켰나요?
  • pr 제목을 컨벤션에 맞게 작성하였나요?
  • pr에 해당되는 이슈를 연결하였나요?
  • 적절한 라벨을 설정하였나요?
  • 스터디원들에게 code review를 요청하기 위해 reviewer를 등록하였나요?
  • 닉네임/main 브랜치의 최신 상태를 반영하고 있는지 확인했나요?

📌 주안점

@sekong11 sekong11 self-assigned this May 31, 2026
@sekong11 sekong11 requested a review from a team May 31, 2026 14:48
@sekong11 sekong11 added the 🚀Week 9 9주차 워크북 미션 label May 31, 2026
Copy link
Copy Markdown

@ennseo ennseo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JWT 기반으로 잘 구현하신 것 같아요! 고생하셨습니다!

Copy link
Copy Markdown

@DOHOON0127 DOHOON0127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셧습니다! 백엔드에서 책임 지도록 oAuth구현 잘 하신 것 같아요!

Comment on lines 1 to +44
spring:
application:
name: "umc10th" # "umc10th"
name: "umc10th"

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver # MySQL JDBC ???? ??? ??
url: ${DB_URL} # jdbc:mysql://localhost:3306/{???????}
username: ${DB_USER} # MySQL ?? ??
password: ${DB_PW} # MySQL ????
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${DB_URL}
username: ${DB_USER}
password: ${DB_PW}

jpa:
database: mysql # ??? ?????? ?? ?? (MySQL)
database-platform: org.hibernate.dialect.MySQLDialect # Hibernate?? ??? MySQL ??(dialect) ??
show-sql: true # ??? SQL ??? ??? ???? ?? ??
database: mysql
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: true
hibernate:
ddl-auto: update # ?????? ?? ? ?????? ???? ??? ??
ddl-auto: update
properties:
hibernate:
format_sql: true # ???? SQL ??? ?? ?? ??? No newline at end of file
format_sql: true

security:
oauth2:
client:
registration:
kakao:
client-id: ${KAKAO_REST_API_KEY}
client-secret: ${KAKAO_REST_API_SECRET}
authorization-grant-type: authorization_code
redirect-uri: "http://localhost:8080/oauth/callback/kakao"
scope:
- profile_nickname
- account_email
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 # userNameAttribute → YAML 표준 케밥케이스

jwt:
token:
secretKey: ${JWT_SECRET_KEY}
expiration:
access: 1800000 # 30분 No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

application.yml에 client-authentication-method: client_secret_post를 추가해야 정상 동작 한다고 혜담님이 말씀주셨엇는데 #131 (comment)

한번 확인해보시면 좋을 것 같습니다. 다음에 올리실때 이 파일은 깃이그노어에 넣어주시면 더 좋을 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚀Week 9 9주차 워크북 미션

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants