Skip to content

Version Packages - #435

Merged
sam-huckaby merged 1 commit into
mainfrom
changeset-release/main
Nov 25, 2026
Merged

sam-huckaby merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@cloudflare/workers-oauth-provider@1.4.0

Minor Changes

  • #434 151220e Thanks @mattzcarey! - A new authorization from a Client ID Metadata Document client no longer revokes the user's other grants from that client. revokeExistingGrants now defaults to false for a client resolved from a Client ID Metadata Document, and stays true for every registered client.

    A CIMD client_id is shared by every installation and connection of the client, so an earlier grant can belong to another device or agent that is still in use. 0.10.3 limited the default revocation to grants from the same redirect URI, but a hosted client uses one https callback for all of its connections and a fixed loopback port is the same on every device. Signing in a second agent still revoked the first, whose next refresh failed with Grant not found.

    revokeExistingGrants: true now means the same for every client: revoke the user's other grants for this client and resource. For a CIMD client that used to revoke only grants from the same redirect URI. To keep one grant per user and resource for a CIMD client, pass true. To choose which grants to end, use listUserGrants() and revokeGrant().

    A URL client_id stored in KV, with clientIdMetadataDocumentEnabled off, is a registered client again: a new authorization replaces its earlier grants whatever their redirect URI.

    Grant keys no longer mirror redirectUri into KV metadata. The grant record still stores it, and listUserGrants() still returns it.


Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@sam-huckaby

Copy link
Copy Markdown
Collaborator

Love it.

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/workers-oauth-provider/@cloudflare/workers-oauth-provider@435

commit: 9d5eea7

@sam-huckaby
sam-huckaby merged commit d2949f3 into main Nov 25, 2026
7 checks passed
@sam-huckaby
sam-huckaby deleted the changeset-release/main branch November 25, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant