-
Notifications
You must be signed in to change notification settings - Fork 0
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/#84 add oauth #85
Conversation
public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2AuthenticationException { | ||
/** | ||
* DefaultOAuth2UserService ๊ฐ์ฒด๋ฅผ ์์ฑํ์ฌ, loadUser(userRequest)๋ฅผ ํตํด DefaultOAuth2User ๊ฐ์ฒด๋ฅผ ์์ฑ ํ ๋ฐํ | ||
* DefaultOAuth2UserService์ loadUser()๋ ์์ ๋ก๊ทธ์ธ API์ ์ฌ์ฉ์ ์ ๋ณด ์ ๊ณต URI๋ก ์์ฒญ์ ๋ณด๋ด์ | ||
* ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ์ป์ ํ, ์ด๋ฅผ ํตํด DefaultOAuth2User ๊ฐ์ฒด๋ฅผ ์์ฑ ํ ๋ฐํํ๋ค. | ||
* ๊ฒฐ๊ณผ์ ์ผ๋ก, OAuth2User๋ OAuth ์๋น์ค์์ ๊ฐ์ ธ์จ ์ ์ ์ ๋ณด๋ฅผ ๋ด๊ณ ์๋ ์ ์ | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loadUser ํจ์๊ฐ ์์ ๋ก๊ทธ์ธ ํ์ ๋ ์ ์ ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ค๋ ๊ฒ ๊ฐ์๋ฐ ์ด ํจ์ ํธ์ถ ์์ ์ด ์ธ์ ์ธ๊ฐ์,,?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฌ์ฉ์๊ฐ ์์ ๋ก๊ทธ์ธ ์๋ -> ๊ตฌ๊ธ Authentication ์๋ฒ๋ก Redirect -> ์ฌ์ฉ์ ์ ๋ณด ์ ๊ณต ๋์ -> ์ฐ๋ฆฌ ์๋ฒ์ ์ธ์ฆ์ฝ๋ ๋ฐ๊ธ -> ์ธ์ฆ์ฝ๋๋ก ๊ตฌ๊ธ Authentication ์๋ฒ์ access token ๋ฐ๊ธ ์์ฒญ -> ๋ฐ์ access token์ผ๋ก ๊ตฌ๊ธ Resourse ์๋ฒ์ ์ฌ์ฉ์ ์ ๋ณด ์์ฒญ
์ฌ๊ธฐ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ฌ ๋ loadUser ๋ฉ์๋๊ฐ ์คํ๋๊ฒ ๋ฉ๋๋ค.
ํ์ฌ ์ด ์ฝ๋์์ ์์
๋ก๊ทธ์ธํ ์ ์ ๊ฐ ์ฐ๋ฆฌ ์๋น์ค์ ํ์์ธ์ง๋ฅผ ํ์ธํ๋ ๊ธฐ๋ฅ์ ํ๊ณ ์๊ณ , ์ฌ๊ธฐ์ ๋ฐํ๋๋ OAuth2User ๊ฐ์ฒด๋ ์คํ๋ง ์ธ์
์ ์ ์ฅ๋๊ฒ ๋ฉ๋๋ค~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค ๊ทธ๋ฆผ์ผ๋ก ๋ณด๋๊น ์์ ์ ์ดํด๋์ต๋๋ค!๐
* add: dto์ valid message ์ถ๊ฐ * add: controller์ valid ์ต์ ์ถ๊ฐ * refactor: ํด๋ ๊ตฌ์กฐ ๋ณ๊ฒฝ * add: ์ํฐํฐ์ ์์ฑ ๋ฐ ์์ User ๊ธฐ๋ก Auditing ์ถ๊ฐ * refactor: ํด๋ ๊ตฌ์กฐ ๋ณ๊ฒฝ * fix: unchecked call to ~ warning ์ ๊ฑฐ * fix: ์ฝ๋์ ํ์ ์บ์คํ ์ค๋ณต ์ ๊ฑฐ * fix: ์ฝ๋์ ํ์ ์บ์คํ ์ค๋ณต ์ ๊ฑฐ * refactor: ์ฝ๋ ๊ณ์ธต ๊ตฌ์กฐ ๋ณ๊ฒฝ
(cherry picked from commit 416530e)
๐ ๊ด๋ จ ์ด์
closed #84
โจ ๊ณผ์ ๋ด์ฉ
๐ธ ์คํฌ๋ฆฐ์ท(์ ํ)
๐ ๋ ํผ๋ฐ์ค (๋๋ ์๋ก ์๊ฒ ๋ ๋ด์ฉ) ํน์ ๊ถ๊ธํ ์ฌํญ๋ค