Skip to content

Stop requesting the Qonto User OAuth scope - #451

Merged
tnkuehne merged 1 commit into
mainfrom
qonto-membership-scopes
Nov 27, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
qonto-membership-scopes

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

Problem

Connecting a Qonto account fails right after Qonto's sign-in. Qonto redirects back with:

error=invalid_scope
The OAuth 2.0 Client is not allowed to request scope 'user_organization.read'.

user_organization.read belongs to Qonto's User OAuth flow. Qonto enables that flow only for applications it has approved, and an application that uses it can't use the membership flow. The template uses the membership flow, so an app created as the template's setup describes can't request the scope.

Change

  • auth.ts no longer requests user_organization.read.
  • listUserOrganizations is no longer offered. It needs that scope, and with a membership token the connected organization is available through getOrganization.
  • Regenerating from Qonto's current documentation also updates the docs of a few invoice methods. Invoice, quote and recurring-invoice currency is now optional and defaults to the client's currency.

Checks

  • pnpm typecheck and pnpm test in templates/qonto pass.

Qonto only grants user_organization.read to applications it approved for the
User OAuth flow, which can't be combined with the membership flow the template
uses. Requesting it made every connection fail with invalid_scope. The template
no longer requests the scope or offers listUserOrganizations, which needs it.

Regenerating also picks up Qonto's current documentation, such as invoice and
quote currencies now defaulting to the client's.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 8c0c7b1 Nov 27 2026, 01:13 PM

@tnkuehne
tnkuehne merged commit c11ec78 into main Nov 27, 2026
12 checks passed
@tnkuehne
tnkuehne deleted the qonto-membership-scopes branch November 27, 2026 13:46
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