THE GITHTML FIELD GUIDE
An OAuth token handoff record for implementation reviews
Use an OAuth handoff record to identify the actual actors, selected flow, redirect boundaries, token ownership, and verified provider requirements. Link current security guidance and the implementation evidence. Do not put credentials or live tokens in the record, and do not treat a completed template as proof that an authentication design is secure.
Map actors and trust boundaries before describing requests
Identify the client, authorization server, resource server, user interaction, and any backend component that handles credentials or tokens. Distinguish public and confidential client assumptions according to the actual platform and provider contract. Name the selected flow without copying an older example simply because it is familiar. OAuth guidance has evolved, so consult the provider's current documentation and current security best practice alongside the base framework. This record is a review aid, not a substitute for security design expertise. Keep uncertainty visible when a token's storage location, audience, or lifecycle is not yet established.
Capture the handoff contract without secret values
Use the scaffold below to record endpoints by role, redirect registration, scopes, token recipients, storage ownership, expiration handling, and revocation expectations. Reference implementation files and provider documentation at known versions. Include diagrams only as a supplement to explicit actor-to-actor statements. A line labeled token passes here should specify which token type and intended recipient without copying an actual token. Record who is responsible for validating callback state and other applicable protections, using the chosen provider's documented requirements. Avoid turning this template into a universal flow recipe; different client types and environments impose different constraints that require qualified review.
Provider and client type:
Selected flow and current guidance:
Actors and trust boundaries:
Redirect registration:
Requested scopes:
Token type / intended recipient:
Storage owner:
Expiration and revocation handling:
Sensitive logging exclusions:
Unresolved security questions:
Reviewer and evidence:Review failures and lifecycle transitions
Walk through canceled authorization, denied consent, invalid callback state, expired tokens, revoked access, and provider errors using a safe test environment. Record expected user-visible behavior and the component responsible for recovery. Confirm that logs and support screenshots do not expose credentials or token contents. Identify unresolved decisions and their owners before implementation handoff. When a provider changes requirements or the application changes its client architecture, revisit the record rather than assuming the old flow remains appropriate. A reviewer should be able to trace where authority is obtained, where it is used, and where it ends, while understanding which security questions still need specialist validation. Keep the record's approval status explicit. A draft with all fields filled can still contain unresolved assumptions, and downstream implementers should not mistake completeness of prose for an accepted security decision.
- Identify actors, client assumptions, and the selected flow from current evidence.
- Record token types and ownership without storing live values.
- Link current provider requirements and OAuth security guidance.
- Review cancellation, expiration, revocation, and logging behavior with the responsible security reviewer.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.