Skip to content

[Workers] Add OIDC token bindings - #35538

Draft
efalcao wants to merge 1 commit into
productionfrom
efalcao/oidc-token-bindings
Draft

efalcao wants to merge 1 commit into
productionfrom
efalcao/oidc-token-bindings

Conversation

@efalcao

@efalcao efalcao commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the oidc_tokens binding (open beta). It issues short-lived OpenID Connect tokens that identify the Worker, so a Worker can exchange them for cloud credentials or send them to an API as a bearer token instead of storing long-lived secrets.

  • New page, workers/runtime-apis/bindings/oidc-tokens.mdx. It covers:
    • the binding configuration and getToken()
    • the token claims and the per-account issuer, with its discovery document and JWKS
    • how to configure a verifier and find the Worker's subject
    • verifying tokens in your own API, with jose
    • Previews, the absence of version preview URLs, local development, and security notes
  • Wrangler configuration reference: oidc_tokens in the non-inheritable keys list, plus an "OIDC tokens" section under Bindings.
  • Changelog: a Workers entry for the open beta.

The bindings index lists the new page automatically through DirectoryListing.

Draft until these ship:

The changelog date (2026-11-23) needs updating to the launch date.

Documentation checklist

🤖 Generated with Claude Code

Document the oidc_tokens binding: its configuration, getToken(), the
token claims, the per-account issuer and its discovery document, how to
configure a verifier and find the Worker's subject, Previews, and local
development. Add the binding to the Wrangler configuration reference and
a changelog entry for the open beta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://efalcao-oidc-token-bindings.previews.developers.cloudflare.com (commit 876efa8)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://495a19c2.previews.developers.cloudflare.com 876efa8 2026-11-23T10:52:31.738Z Visit the dashboard ↗

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

⚠️ @efalcao This pull request adds a changelog entry dated in the past:

  • src/content/changelog/workers/2026-11-23-oidc-token-bindings.mdx — dated 2026-11-23

Typically, changelog entries should be dated the day they merge. This is not blocking — if the date is unintentional, please update it.

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

@efalcao This draft pull request has had no activity for 3 days. It will close after 7 days of inactivity. Transition to ready for review if ready. A codeowner can comment /draft-never-stale to keep it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant