Interview practice question
Testing authorisation rules thoroughly
Backend Engineering · Testing · Intermediate
Your API has several roles and resource ownership rules, and authorisation bugs keep slipping through. How would you test authorisation systematically?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Matrix of roles × actions × ownership.
- Parameterised tests per endpoint.
- Negative tests (should be denied).
- Cross-tenant/cross-user cases.
- Automatic check that new endpoints have authz tests.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.