Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/oauth kakao #51

Merged
merged 3 commits into from
Jul 15, 2023
Merged

Feat/oauth kakao #51

merged 3 commits into from
Jul 15, 2023

Conversation

haen-su
Copy link
Member

@haen-su haen-su commented Jul 15, 2023

๐Ÿชฉ feat: ์นด์นด์˜ค ์ธ์ฆ ํ›„ ํšŒ์›๊ฐ€์ž… ๋กœ์ง ๊ตฌํ˜„


๐Ÿ“Œ ๊ด€๋ จ ์ด์Šˆ

#48 - ์นด์นด์˜คํ†ก ์†Œ์…œ ๋กœ๊ทธ์ธ ๊ตฌํ˜„


๐Ÿงญ ์ž‘์—… ๋ธŒ๋žœ์น˜

feat/oauth-kakao


๐Ÿ“š ์ž‘์—… ๋‚ด์šฉ

์นด์นด์˜ค ์ธ์ฆ ํ›„ ํ”„๋กœํ•„ ์ž‘์„ฑ ์—ฌ๋ถ€๋ฅผ ํŒ๋‹จํ•˜๋Š” ๋กœ์ง์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค


๐Ÿ“ ์ƒ์„ธ ์„ค๋ช…

  • ๊ธฐ์กด User์— UserRole์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค
  • ์นด์นด์˜ค ์ธ์ฆ ํ›„ User๊ฐ€ ํ”„๋กœํ•„์„ ์ž‘์„ฑํ–ˆ๋‹ค๋ฉด isGuest=false, ์ž‘์„ฑํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด isGuest=true๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค ํ”„๋ก ํŠธ์—์„œ ํŒ๋‹จํ•˜์—ฌ ํ”„๋กœํ•„ ์ž‘์„ฑ ํŽ˜์ด์ง€๋กœ ์ „ํ™˜ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. -> ์ถ”ํ›„ ๋…ผ์˜ ํ•„์š”
  • ๊ธฐ์กด @AuthenticationPrincipal ์–ด๋…ธํ…Œ์ด์…˜์œผ๋กœ ๋ฐ”๋กœ ๋กœ๊ทธ์ธํ•œ User ๊ฐ์ฒด๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์—†์–ด์„œ UserAccount์™€ ์ปค์Šคํ…€ ์–ด๋…ธํ…Œ์ด์…˜ @AuthUser๋ฅผ ํ†ตํ•ด ๋ฐ”๋กœ ๋กœ๊ทธ์ธํ•œ ์œ ์ €๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ๋„๋ก ํ•˜์˜€์Šต๋‹ˆ๋‹ค ์ฐธ๊ณ ํ•˜์—ฌ ์ฝ”๋“œ ์ž‘์„ฑํ•˜์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค~!

@haen-su haen-su merged commit 955fdc5 into develop Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant