Claude Platform documentation about Workload Identity Federation
This Claude Platform documentation page describes Workload Identity Federation (WIF), which lets workloads authenticate to the Claude API using short-lived OpenID Connect (OIDC) tokens from an identity provider (IdP) instead of long-lived static API keys. Supported IdPs include AWS IAM, Google Cloud, GitHub Actions, Kubernetes service accounts, SPIFFE, Microsoft Entra ID, and Okta. The workflow involves: the IdP issuing a JWT to the workload; the Anthropic SDK exchanging the JWT for a short-lived Anthropic access token; and the SDK sending the token on every request while automatically refreshing it before expiry. Key concepts include service accounts (non-human identities in an Anthropic organization), federation issuers (registered OIDC providers with issuer URL and JWKS source), and federation rules (which bridge issuers to service accounts with match conditions, target, and authorization scope). The page includes setup instructions, SDK client examples (Python, TypeScript, Go, Java, C#, PHP, Ruby), credential precedence rules (constructor args take priority over API keys, which sit above federation tiers), migration guidance from API keys, token lifetime and refresh schedules (advisory refresh at expiry minus 120 seconds, mandatory at expiry minus 30 seconds), and specific guidance for each identity provider.
https://platform.claude.com/docs/en/manage-claude/workload-identity-federation
Comments
Post a Comment