AuthenticationEntryPointarrow-up-right์ ๊ตฌํ์ฒด๋ ์ฌ๋ฌ ๊ฐ๊ฐ ์์ ์ ์์ผ๋ฉฐ, ์ธ์ฆ ํ๋ก์ธ์ค๋ง๋ค ์คํ๋๋ ํด๋์ค๋ค์ด ๋ค๋ฅด๋ค.
application.yml์ ๋ฆฌ์์ค ์๋ฒ ์ค์ ์ ํ๋ฉด ExceptionHandingConfigurer ์ด๊ธฐํ ๊ณผ์ ์์ ๋ํดํธ๋ก BearerTokenAuthenticationEntryPoint๊ฐ ์ ์ฅ๋๊ณ , ๋ฆฌ์์ค ์๋ฒ ์ค์ ์ ํ์ง ์์ผ๋ฉด ๋ํดํธ๋ก LoginUrlAuthenticationEntryPoint์ BasicAuthenticationEntryPoint๊ฐ ์ ์ฅ๋๋ค.
application.yml
BearerTokenAuthenticationEntryPoint
LoginUrlAuthenticationEntryPoint
BasicAuthenticationEntryPoint
์ด์ โฉ๏ธ - OAuth 2.0 Resource Server - Resource Server ์์(application.yml,OAuth2ResourceServerProperties)arrow-up-right
OAuth2ResourceServerProperties
๋ฉ์ธ โซarrow-up-right
๋ค์ โช๏ธ - OAuth 2.0 Resource Server - ์๋ ์ค์ ์ ์ํ ์ด๊ธฐํ ๊ณผ์ arrow-up-right
Last updated 3 months ago