lesson depth
Mastery
not started · 0%

Delegated Credentials for AI Tools

Use short-lived, audience-bound, least-privilege credentials without exposing secrets to model context.

Freshness: current14 min readSecurity Safety and Governance

Key Learning Outcomes

  • Explain the operating model behind Delegated Credentials for AI Tools.
  • Evaluate trade-offs and failure modes for Delegated Credentials for AI Tools.
  • Apply Delegated Credentials for AI Tools to a production decision.

Mental model

Delegation gives the executor a narrow capability for one purpose, not the user's durable credential or the application's full authority.

Problem boundary
Evidence and state
Deterministic control
Probabilistic decision
Verification and feedback
Conceptual teaching model synthesized from:OAuth 2.0 Security Best Current PracticeModel Context Protocol Architecture and Tools Specification

Learning outcomes

  • Explain the mechanism and ownership boundaries behind Delegated Credentials for AI Tools.
  • Compare the main design alternatives and their operational trade-offs.
  • Diagnose common failures and select evidence for a production decision.

Theory

Issue short-lived tokens bound to audience, subject, scopes, resource, and transaction where possible. Keep secret material outside prompts and logs, rotate it through a broker, and revoke it when approval or session state changes.

Trade-offs

Per-action credentials reduce exposure but require token exchange and reliable identity propagation. Shared service credentials are simpler but erase attribution and tenant boundaries.

Failure modes and misconceptions

Embedding tokens in prompts; overbroad scopes; long expiry; accepting tokens at unintended audiences; logging secrets; and reusing credentials across tenants.

Decision scenario

An agent needs temporary access to update one calendar event. Define the token audience, scope, lifetime, and audit fields.

Reflect before revealing the guide

Why is a short-lived token still unsafe if it is not audience or resource bound?

Primary sources

  • oauth-security-bcp
  • mcp-specification

Prerequisites & Related Concepts (3)

Private notes

0 words
Next