System Design
10. API Design and ManagementAnimated
API Authorisation
Deciding what the caller may do.
The idea
After identifying the caller, check permissions for the resource and action.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- current message
- earlier
- failure or attack
The user starts in the app.
- step:
- 1/8
- from:
- User
- to:
- App
1/8
Time runs downward. Solid arrows are requests, dashed arrows are replies.
Step by step
- 1Identify the caller
- 2Look up roles or scopes
- 3Check against the requested action
- 4Allow or return 403
Where it is used
Protected resources.
Watch out for
Check on the server for every request, not only in the UI.