OAuth 2.0 Resource Server - AuthenticationEntryPoint

img_8.png
  • AuthenticationEntryPoint์˜ ๊ตฌํ˜„์ฒด๋Š” ์—ฌ๋Ÿฌ ๊ฐœ๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์ธ์ฆ ํ”„๋กœ์„ธ์Šค๋งˆ๋‹ค ์‹คํ–‰๋˜๋Š” ํด๋ž˜์Šค๋“ค์ด ๋‹ค๋ฅด๋‹ค.

  • application.yml์— ๋ฆฌ์†Œ์Šค ์„œ๋ฒ„ ์„ค์ •์„ ํ•˜๋ฉด ExceptionHandingConfigurer ์ดˆ๊ธฐํ™” ๊ณผ์ •์—์„œ ๋””ํดํŠธ๋กœ BearerTokenAuthenticationEntryPoint๊ฐ€ ์ €์žฅ๋˜๊ณ , ๋ฆฌ์†Œ์Šค ์„œ๋ฒ„ ์„ค์ •์„ ํ•˜์ง€ ์•Š์œผ๋ฉด ๋””ํดํŠธ๋กœ LoginUrlAuthenticationEntryPoint์™€ BasicAuthenticationEntryPoint๊ฐ€ ์ €์žฅ๋œ๋‹ค.


์ด์ „ โ†ฉ๏ธ - OAuth 2.0 Resource Server - Resource Server ์‹œ์ž‘(application.yml,OAuth2ResourceServerProperties)

๋ฉ”์ธ โซ

๋‹ค์Œ โ†ช๏ธ - OAuth 2.0 Resource Server - ์ž๋™ ์„ค์ •์— ์˜ํ•œ ์ดˆ๊ธฐํ™” ๊ณผ์ •

Last updated