Skip to content

API Object Authorization Test Plan

Audience: Developers and application security learners · Suggested effort: 60–90 minutes · Level: Intermediate · Access: Free independent study

This guided project is a synthetic learning exercise, not proof of a real client engagement or an instructor-verified assessment. Work with fictitious data or systems you are explicitly authorized to use.

Start the 7-Day Free Challenge · Explore All Foundation Modules

A fictional student API returns training records. Student A should read only their own record, Student B should read only theirs, and an administrator is governed by a separate scoped policy. The design must reject cross-student record requests.

Why this matters at work: Secure software teams need negative tests, not just a successful-login check. The work product should tell developers what must be denied and which response evidence would demonstrate enforcement.

Read the relevant free Foundation lessons before writing conclusions:

You should be able to explain the following in your own words:

  • Separate authentication from object-level authorization
  • Write positive and negative cases without probing a real target
  • Describe expected outcomes and remediation evidence
flowchart TD
    REQ["Authenticated API request"] --> CHECK{"Owns requested record?"}
    CHECK -->|"Yes"| ALLOW["Return scoped training record"]
    CHECK -->|"No"| DENY["Deny, return no other student data"]
    ALLOW --> AUDIT["Record permitted audit event"]
    DENY --> AUDIT

The diagram is an illustrative architecture, not an actual production topology or evidence from an engagement.

  1. Define actors. List synthetic users A, B and Admin, their permissions and the sample resource.
  2. Write an access matrix. Specify allowed and denied operations across own-record and other-record access.
  3. Create test cases. Use placeholders and expected HTTP responses. Do not claim an observed result unless a permitted local fixture is actually tested.
  4. Review the server-side control. Explain where object ownership should be checked and how a regression test would prove a fix.
Download editable Markdown worksheet

The file opens in Obsidian, VS Code or any Markdown editor. Fill it in with your own reasoning, an original diagram and clearly labeled synthetic or authorized observations. No login, upload or hosted lab is required.

Expected deliverable: An access-control matrix, at least three negative/positive test cases and a remediation/retest note.

Expected: Student A can read record A but cannot retrieve record B. This is a test-plan expectation, not a claim that a real service was tested.

Use this as a model of how to distinguish evidence from assumptions. Write your own response for your project rather than presenting the example as a test you actually conducted.

  • Cross-user read requests have explicit expected denial
  • The difference between logged-in and authorized is explained
  • No production or third-party API is touched
  • Results are correctly marked ‘not executed’ until tested

These checkboxes are for personal reflection. A completed worksheet does not award a credential, prove employment experience or certify technical competence.

Use the Portfolio README template to create a one-page project summary. Include the business context, a diagram, your methodology, evidence or stated assumptions, limitations, recommendations and citations. If sharing publicly, remove customer information, access tokens, real internal addresses and sensitive screenshots.

Explore other free portfolio projects · All Foundation modules · Optional GHC Academy Labs