News · · 8 min read
AWS IAM Credential Broker preview: what AWS takes over when agents call external OAuth
In this post
On November 29, 2026 (posted 08:00 GMT), AWS released AWS IAM Credential Broker as a public preview. It fetches, refreshes, and stores the OAuth tokens and API keys that apps and agents running on AWS need when they call systems outside AWS, such as Salesforce, Snowflake, and Databricks. It is available in all commercial Regions, with no additional cost during the preview.
The short version: the service removes the OAuth plumbing, not the application's responsibilities. Sending users to a consent screen, running a handler that confirms the person who finished consent is the person who started it, and creating a separate IAM session for every user all stay with your app. The AWS docs also say that agents built on AgentCore should keep using AgentCore Identity instead. This post covers when this service is the right pick, what each of the three OAuth flows asks of you, what we checked ourselves in the Seoul Region and the SDK, and what it means for teams in Korea.
Where the three features split
Pulling the AWS docs' guidance together, outbound calls split into three paths. If the external service accepts a JSON Web Token (JWT) issued by AWS, use IAM outbound identity federation. AWS issues that token itself, so there is no client secret to store. If the agent runs on Amazon Bedrock AgentCore, keep using AgentCore Identity's credential providers and token vault. Everything else, meaning workloads on Lambda, ECS, EKS, or EC2 that need external OAuth or API keys, is where Credential Broker fits.
Figure 1 turns guidance spread across the docs into a single decision flow, compiled by us. The last three decisions pick the provider type and OAuth flow inside Credential Broker.
Note that Credential Broker does not issue tokens. The docs say every token comes from your identity provider (IdP), the external authorization server, or the SaaS platform; Credential Broker obtains it on your behalf, caches it, and returns it. Tokens are cached for up to one hour, or until they expire if that comes sooner. Client secrets and API keys live in AWS Secrets Manager in your own account. Cached credentials are encrypted with an AWS owned key by default, or with a customer managed KMS key if you choose one.
What each OAuth flow asks of you
An OAuth token provider uses one of three flows. Here is the docs' comparison, reorganized around what the user has to do:
| Flow | Token represents | User action | Fits |
|---|---|---|---|
| M2M (client credentials) | The app itself | None | Scheduled jobs, batch, shared integrations |
| 3LO (authorization code) | The end user | Consents once in a browser | A user's own Jira or GitHub data |
| OBO (token exchange) | An already signed-in user | No new consent once a subject token exists | Internal APIs behind your corporate IdP |
M2M is the lightest. With no user involved, a single GetOAuthToken call returns a token, and Credential Broker fetches a new one when it expires. The AWS tutorial, which uses Okta, puts the setup at about 15 minutes.
3LO and OBO carry more weight. Both require calling Credential Broker with a per-user IAM session rather than the app's shared role session. If users sign in through an external OIDC or SAML IdP, you create that session with AssumeRoleWithWebIdentity or AssumeRoleWithSAML. If they sign in through IAM Identity Center, you use trusted identity propagation. Credential Broker keys each user's tokens to the identity in that session, which is what stops one user from retrieving another user's token.
OBO follows the RFC 8693 token exchange standard; for Microsoft Entra ID it uses the RFC 7523 JWT bearer grant instead. The docs list Microsoft, Okta, Salesforce, and custom OAuth 2.0 authorization servers as supported for token exchange.
The "no new consent" part of OBO comes with a condition: a user token to exchange, the subject token, must already exist. With the user's IAM Identity Center session as the subject token source, the exchange is silent from the first call. With another provider as the source, the user has to go through authorization code consent with that provider once, and until then the call fails with the reason SUBJECT_TOKEN_MISSING. The docs recommend an IAM Identity Center source for callers that can't show a browser.
The part your app still builds
3LO puts the most work on the app. The docs state that this release has no broker-hosted consent portal. Your app sends the user's browser to the authorization URL it gets back from StartOAuthSession.
Then comes a step called session binding. In an ordinary browser OAuth flow, PKCE and the state parameter tie the authorization code to the browser that started the flow. Here, a server-side API call starts the flow instead, so those two controls are not enough. An attacker could start a flow, send the authorization URL to a victim, and collect a token that represents the victim once they consent. The docs describe this as a confused-deputy attack.
So your app needs a handler at a session binding URL. It runs behind your app's own login session, validates the customState value you passed at the start, and calls CompleteOAuthSessionBinding with the signed-in user's session. If the person who finished does not match the person who started, the call fails with the reason SESSION_BINDING_IDENTITY_MISMATCH and no token is kept. Each provider accepts up to 10 allowed session binding URLs.
In exchange, the authorization code, client secret, and refresh token never reach your app; it only gets short-lived access tokens. One more constraint is DPoP (Demonstrating Proof of Possession). The tutorial says Credential Broker does not support DPoP yet, so you have to turn off the DPoP requirement on the Okta app.
What we checked in the Seoul Region and the SDK
The announcement only says "all commercial AWS Regions." For teams in Korea, the Seoul Region comes first, so on the afternoon of November 30, 2026 (KST) we checked three things ourselves:
| Check | Method | Result |
|---|---|---|
| Seoul data plane endpoint | DNS lookup and an unsigned HTTPS request to credentialbroker.ap-northeast-2.api.aws | Three addresses returned; the service answered UnknownOperationException (HTTP 404) |
| Python SDK model | Downloaded botocore 1.44.15 from PyPI and read the service models | Includes credentialbroker (4 APIs) and credentialbroker-control (13 APIs) |
| Grant values | The GrantType enum in the same model | CLIENT_CREDENTIALS, AUTHORIZATION_CODE, TOKEN_EXCHANGE, JWT_AUTHORIZATION_GRANT |
We read the 404 in the first row as a sign that the endpoint is live: with no signature, the service simply could not tell which operation was requested. We did not go as far as issuing a real token, which needs an external OAuth app and an account with the right IAM permissions.
In the third row, the docs talk about three flows while the SDK has four grant values. The fourth, JWT_AUTHORIZATION_GRANT, is the RFC 7523 grant used for Entra ID mentioned above, a variant of OBO rather than a separate flow. The runtime API is just four operations, GetOAuthToken, GetApiKey, StartOAuthSession, and CompleteOAuthSessionBinding, so the surface your app code calls is small.
Community reaction
As of November 30, one day after the launch, we found no posts or substantive comments about this service on Hacker News.
There is a related discussion worth comparing. In comments on Hacker News agent-security threads, "credential broker" has sometimes meant something different. theozero, who describes the secrets tool Varlock as "ours," wrote in August 2026: "a huge step is first getting credentials out of plaintext, and then out of the process entirely using a "credential broker" (proxy) pattern - that means injecting placeholders, and replacing them in a MITM proxy" (HN comment). The comment promotes the commenter's own tool, so we do not read it as a neutral assessment.
The difference from the AWS service is where the token ends up. With the proxy pattern, the agent process never sees the real token. Credential Broker hands a short-lived access token directly to the agent. Both keep secrets out of code and config files, but with Credential Broker the token sits with the agent for as long as it is valid.
What it means for teams in Korea
For teams running agents on Lambda or ECS in the Seoul Region that call overseas SaaS such as Salesforce, Jira, or GitHub, this looks worth trying right away. It can replace the token refresh and secret storage code each app has been carrying, and Credential Broker itself is free during the preview. Because the secrets are stored in Secrets Manager in your account, though, it seems worth checking those costs separately.
We are holding off on a verdict for Korean services such as Kakao Login or Naver Login. The docs support a custom configuration besides vendor templates and accept three client authentication methods, CLIENT_SECRET_BASIC, CLIENT_SECRET_POST, and NONE, so a standard authorization code flow looks likely to work. But we have not connected one, and we could not confirm whether Korean providers are on the template list.
For consumer apps, the per-user IAM session looks like the biggest job. A B2C service that handles sign-in with Cognito or its own OIDC has to create a session with AssumeRoleWithWebIdentity for each user and call Credential Broker with it. Internal tools already on IAM Identity Center can use OBO with no consent from the first call, so they look to have a comparatively easier path in.
If the agent is an LLM agent, design for the fact that the token lands in the agent's hands. We covered how agents are not fully protected from prompt injection in our post on the Claude Fable 5.2 system card. It looks safer to keep the code that receives tokens apart from the context the model reads and writes, and to request only the scopes a task needs. Credential Broker narrows the ways secrets leak, but it does not close the ways tokens can leak.
Limitations
| Item | Detail |
|---|---|
| Real token issuance | Not tested. We checked the endpoint response and the SDK model only |
| Performance and latency | AWS published no latency or throughput numbers, and there is no third-party measurement. As an identity brokering service it has no benchmark axis, so this post leaves performance out |
| Docs status | Every docs page carries "prerelease documentation for a service in preview release. It is subject to change." Behavior described here is as of November 30 |
| Pricing | Post-preview pricing has not been announced |
| Korean providers | We did not confirm connections to Korean OAuth providers such as Kakao or Naver |
| Community | One day after launch, there is almost no reaction yet |
Sources
- AWS What's New, "AWS announces the public preview of AWS IAM Credential Broker": https://aws.amazon.com/about-aws/whats-new/2026/11/aws-iam-credential-broker-preview/
- AWS IAM User Guide, "AWS IAM Credential Broker": https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker.html
- Client credentials flow: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-m2m.html
- Authorization code flow: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-3lo.html
- Token exchange flow: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-obo.html
- Session binding: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-session-binding.html
- Getting started tutorial: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-setup.html
- Security (secrets and encryption): https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-broker-security.html
- Getting started with outbound identity federation: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_outbound_getting_started.html
- Product page: https://aws.amazon.com/iam/credential-broker/
