Front end security with HATEOAS
summary
Argues that sending raw permission strings to the browser is unsafe and instead the server should return allowed actions as HATEOAS links, implemented with Spring HATEOAS. Demo uses a Java backend + React frontend Wordle app and replaces CASL-style abilities with server-provided links, removing hard-coded URLs and permission strings. Uses the CASL-like library (47k stars on GitHub) for comparison and shows the HATEOAS approach runs in the demo and reduces exposed surface.
AI-written summary · about
chapters (16)
- 0:00Introduction to frontend security
- 1:08Security terminology basics
- 3:12Authentication vs authorization
- 5:22Top 10 security risks evolution
- 6:48Role-based access control explained
- 8:37Resource-based access control
- 10:01Attribute-based access control
- 11:48Client-server trust model
- 13:17Backend security with Spring
- 16:10Security in code implementation
- 17:14Frontend security challenges
- 20:06JavaScript reverse engineering risks
- 23:16HATEOAS for frontend security
- 27:14Demo introduction
- 31:12Live code demonstration
- 36:32Q&A session
