An enterprise architecture team is designing an agentic system that uses Claude Opus 5.5 to manage customer data. The system requires access to an external API that uses OAuth2. How should the team architect the credential management for this integration?
This approach keeps the sensitive credentials strictly within the application's secure environment. The agent interacts with a tool that provides the necessary functionality without ever needing to see or handle the raw OAuth credentials itself.
Why this answer
Architecting for security requires decoupling the model from the raw credentials. By using a secure vault or secret manager, the application code handles the authentication handshake and token rotation. The model only interacts with an abstracted tool that knows how to use the authenticated session provided by the application, ensuring that the raw secrets are never exposed to the model's input or context.
This approach adheres to the principle of least privilege and isolates the security-critical components.
Exam trap
Assuming that Claude can handle raw OAuth tokens or that the model's context is a secure place to store credentials.