๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋ก๋ฆฌํŽ™ํ„ฐ๋ง (1)

JUINTINATION

Spring Security RoleHierarchy๋กœ ๊ณ„์ธต๊ถŒํ•œ ์„ค์ •ํ•˜๊ธฐ

์ด์ „ Board Clone ํ”„๋กœ์ ํŠธ์— Spring Security๋ฅผ ์ ์šฉํ•œ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ธฐ์—์„œ ๊ฐ ์‚ฌ์šฉ์ž์˜ ์—ญํ• (Role)์— ๋”ฐ๋ผ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋Š” URL์„ ๋‹ค๋ฅด๊ฒŒ ์„ค์ •ํ–ˆ์—ˆ๋‹ค. ์•„๋ž˜๋Š” ์ด๋ฅผ ๋ช…์‹œํ•œ SecurityConfig.java์˜ filterChain ๋ฉ”์„œ๋“œ์˜ ๋‚ด์šฉ์ด๋‹ค. Board Clone ํ”„๋กœ์ ํŠธ์— Spring Security๋ฅผ ํ™œ์šฉํ•œ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ธฐํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ๊ธฐ์กด์˜ ์ฝ”๋“œ๋กœ ๋ฐฐ์šฐ๋Š” ์Šคํ”„๋ง ๋ถ€ํŠธ ์›น ํ”„๋กœ์ ํŠธ Board Clone ํ”„๋กœ์ ํŠธ๋Š” ์˜ˆ์ „์— ์Šคํ”„๋ง ๊ณต๋ถ€๋ฅผ ์œ„ํ•ด ETRI์—์„œ ์—ฐ๊ตฌ์—ฐ์ˆ˜์ƒ์œผ๋กœ ๊ทผ๋ฌดํ•  ๋•Œ ๋Œ€์—ฌํ–ˆ๋˜ ์ฝ”๋“œ๋กœ ๋ฐฐ์šฐ๋Š” ์Šคํ”„๋ง ๋ถ€ํŠธ ์›น ํ”„๋กœjuintination.tistory.com@Beanpublic SecurityFilterChain filterChain(HttpSecurity ..

Java Spring Boot 2024. 8. 12. 18:14