Checking Permission for the Selected Resource

Permission to perform an action depends on the actual resource and the requester, along with the policy's relevant context.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two projects
  2. Keep representative checks

Trace two projects

A member can edit project A and read project B. The same edit action has a different outcome for each resource. The path parameter identifies the resource before applying its policy.

Keep representative checks

Test with invented projects and accounts possessing different roles. Assert both the response and whether the underlying state changed. A function postcondition can state what a rejected update preserves.[1]

References

  1. OWASP Cheat Sheet Series, Authorization Cheat Sheet ↩