AC

Authentication & Access Control Audit

Secure authN/authZ patterns • Portfolio demonstration

⚠️
SIMULATED DEMO — Not connected to the actual Flask application. This is a static, client-side mockup. No backend, network requests, or real authentication are performed.

Authentication Workflow

Simulate session-based login/logout behavior

Session State

Authenticated NO
user_id —
role —

Matches documented behavior: session cleared on login; role checks enforced.

Horizontal Access Control

User data isolation (ownership checks)

Alice and Bob each own different records. Attempting to access another user's record is denied.

A1 owner: alice
Alice's Note 1
A2 owner: alice
Alice's Note 2
B1 owner: bob
Bob's Note 1
B2 owner: bob
Bob's Note 2
Outcome —
HTTP Status —
Response
—

Matches project behavior: missing/unauthorized return 404 to avoid record enumeration.

Vertical Access Control (RBAC)

Admin-only functionality protection

Regular users are denied access to admin endpoints; administrators are allowed.

Outcome —
HTTP Status —
Response
—

Matches behavior: role tampering/unauthorized admin access returns 403 and may clear session as implemented.

Sample Results

Evidence from the existing project (not produced by this mockup)

37
Tests Passed
As documented in README (latest recorded run)
7
Test Categories
Auth, horizontal authZ, vertical authZ, CSRF, validation, headers, unauth rejection
Local-only
Intended Scope
127.0.0.1, in-memory data, no production hardening

This mockup does not execute tests. The "37 passed tests" figure references the existing test suite and captured evidence in the repository.