0
Challenge · 56Routing & Data
Authorization
Coreused in ~75% of apps
Logging a user in tells you WHO they are. It says nothing about what they're allowed to do. Show a regular user the Delete and Admin buttons and you've leaked your app's controls — authorization is the layer that decides who can do what.
Core idea. Authorization (AuthZ) maps an authenticated identity to a set of permissions, then renders the UI to match — but the client only hides and disables; the server must independently enforce every permission on every request.
poke it, drag it,
try to break it
try to break it
no slides here.
you drive.
you drive.
Playground, this isn't a screenshot
SIGNED IN AS
<PostToolbar />role = "guest"
PERMISSIONS
- view
- edit
- delete
- admin
Switch role to show/hide actions. Click a hidden action to see why the server still guards it.
↑ play a little first, then dig in