stage S67h
Identity, Auth & Delegated Agent Access (OAuth/A2A/HITL)
Exchange user sessions for short-lived, narrowly scoped, audience-bound (`aud`) OAuth2 tokens (`D7`, RFC 8693/9700). Bind human approvals cryptographically to exact action parameters to prevent TOCTOU and replay. Use typed envelopes (`D3`) for inter-agent messages.
Stage detail
When: Basic auth Weeks 1--2; delegated access Weeks 7--8.
- User identity versus service identity versus agent identity.
- OAuth2 flows/scopes; JWT issuer, audience, expiry, signature validation, key rotation, and secure token storage.
- Short-lived, narrowly scoped credentials; never give agents raw passwords or broad long-lived tokens.
- Delegation: which user authorized which action, against which resource, for how long, and how to revoke it.
- Human approval for high-impact actions; bind approval to exact action/arguments, expire it, and prevent reuse.
- Agent-to-agent trust boundaries only if multiple agents actually communicate.
Extra practice: create a small authorization broker for a mock CRM. Issue short-lived scoped tokens and record user, agent, scopes, target resource, expiry, and approval. Verify that token theft/reuse cannot expand privileges.
Do not learn yet: full enterprise identity federation or A2A protocol depth unless the target role/product requires it.
Study days for this stage
7- 34Deterministic 3-Step WorkflowW6S6M6R09 R24 R41
- 35Study OAuth2 conceptsW6S6D7R22 R23
- 36Implement a local delegated-access simulation with short-lived…W6S6D7R22 R23
- 37Parameter-Bound Human ApprovalW7S6D3D7R21 R22 R27 R41
- 86Review OAuth2/delegated scopesW15S6D7R22 R23
- 91Authorization & Isolation Red TeamingW16S0S4M1D2D3D4D5D7D10D11D12R02 R03 R05 R11 R13 R21 R24 R37
- 95Drill 1: Compromised Credential / Delegated TokenW16S6M1D7D8D11D12R11 R22 R23 R37