Authentication Boundary Mapping
Chart which routes, methods and operations require which credential, so public and protected surfaces are unambiguous
Use when: you need a clear picture of where authentication starts and stops before you review session or access-control behaviour
Avoid when: a single unauthenticated route exists and your target is that one path alone
Procedure
- Enumerate representative routes per area of the application, including at least one per method and resource type.
- Request each route unauthenticated with session material fully removed, and record status and response shape.
- Repeat with your authorized account to see exactly what the credential changes in the response.
- Check whether authentication is enforced at the edge, at the framework or inside handlers, based on error consistency.
- Look for routes that differ only by method, since a protected GET with a public POST is a classic boundary gap.
- Produce a route-by-route boundary table and hand it to the authorization review phase.
Signals
- A route returns full data unauthenticated while its sibling requires a session.
- Error shape differs between edge rejection and application rejection, revealing where the check happens.
- Some methods on a path are protected while others pass through unauthenticated.
- A redirect to login on one route but a plain 401 on another indicates inconsistent boundary enforcement.
Patterns
1. Boundary table
route | GET unauth | GET auth | POST unauth
/api/me | 401 | 200 | 401
/api/public/feed | 200 | 200 | 403
/export.csv | 200 | 200 | 200 <- review
2. Rejection origin
edge: generic 401 + provider headers
framework: structured error with code
handler: application-specific body
3. Method split record
method-level split: path=/api/items GET=auth-required POST=public -> flag for review
Pitfalls
- Testing boundaries while still holding a session cookie, which silently authenticates requests you believe are anonymous.
- Recording only status codes and missing cases where the response body differs while status stays 200.
- Assuming edge enforcement applies to every backend route, when internal services often rely on the edge entirely.
Done when
- A route-by-method table shows unauthenticated and authenticated behaviour for every sampled area.
- Boundary inconsistencies are flagged with exact evidence, and all requests used your own credentials or none at all.