ใช้ Spring Security กำหนด policy ของแต่ละ endpoints ให้ทำงานได้เฉพาะ role ที่กำหนด

Опубликовано: 08 Август 2026
на канале: TP Coder
237
14

วีดีโอนี้ แอดมาร์ทก็จะพามา setup ตัว request matcher บน GoutTogether project ให้สามารถทำการเลือกรับ request จาก role ที่เรากำหนดไว้เท่านั้น ซึ่งเป็นเรื่องสำคัญมาก ๆ เลยในการทำ Security on server-side ครับ Give the right permission to the right role

Code example
https://github.com/marttp/20240629-Go...

หวังว่าจะมีประโยชน์ไม่มากก็น้อยครับ 🙇‍♂️
ขอให้ทุกคนมีความสุข

GitHub: https://github.com/marttp
LinkedIn:   / thanaphoom-babparn  
Medium:   / tpbabparn  
Linktree: https://linktr.ee/tpbabparn