Skip to content

Apply owner permission choices during OAuth reconnect - #428

Merged
asselstine merged 2 commits into
mainfrom
codex/factorize-oauth-reconnect
Nov 24, 2026
Merged

asselstine merged 2 commits into
mainfrom
codex/factorize-oauth-reconnect

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve saved scope choices for the same registered client on a fresh authorization. Explicit client scope requests remain an upper bound; when scope is omitted, the owner can select Factorize API scopes in the browser.
  • Keep explicit integration denials on the replacement authorization unless the owner selects that integration at consent. Existing tokens keep their original scopes.
  • Give actionable reconnect guidance and let an owner reload and review an expired consent form without retrying approval automatically.

The new flow requires a fresh client-driven OAuth link. It keeps the registered client and does not require deleting the old authorization. It cannot add a scope excluded from an explicit client request.

Validation

  • 225 API tests passed with disposable PostgreSQL.
  • 32 Playwright tests passed, and the app built.
  • OpenAPI/client generation, docs, and git diff --check verified.
  • GitHub CI runs the Worker fixture for a fresh same-browser authorization and scope selection.

@asselstine
asselstine marked this pull request as draft November 24, 2026 16:02
@asselstine
asselstine marked this pull request as ready for review November 24, 2026 16:05
@asselstine
asselstine merged commit d50f877 into main Nov 24, 2026
11 checks passed
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