Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: request the current scope vocabulary at login - #145

Merged
a-essawy merged 1 commit into
mainfrom
fix/oauth-login-scopes
Sep 1, 2026
Merged

fix: request the current scope vocabulary at login#145
a-essawy merged 1 commit into
mainfrom
fix/oauth-login-scopes

Conversation

@a-essawy

@a-essawy a-essawy commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

rb login asked for openid media:full offline_access. media:full was retired with the scope vocabulary and now expands to no scopes at all, so the flow still completed and handed back a token carrying nothing: login reported success and every call after it answered 403.

A silent total failure rather than a refused login, which is the worse of the two.

Nobody is affected today: the grants that held the alias were revoked when it was retired, and there are zero live CLI consents. The next rb login would have hit it.

The set

What the CLI actually calls, and nothing more: jobs:write, assets:write, webhooks:write, billing:read, orgs:read, plus openid and offline_access.

It never touches /api-keys, so it does not ask for keys:write. That matters more here than elsewhere because the rendobar-cli client is registered with skip_consent, meaning whatever it asks for is granted with no screen for anyone to review.

Coordination

The matching server change shipped to production in rendobar/rendobar#630, which updates the seeded client's registered scopes. authorize validates the request against those, so the two have to agree. The server side is already live, so this is safe to merge and release whenever.

`rb login` asked for `openid media:full offline_access`. media:full was
retired with the scope vocabulary and now expands to nothing, so the
flow still completed and handed back a token carrying zero scopes:
login reported success and every call after it answered 403. A silent
total failure rather than a refused login.

The set here is what the CLI actually calls (jobs, assets, webhooks,
billing, orgs, account) and nothing more. It never touches /api-keys,
so it does not ask for keys:write, which matters because the
rendobar-cli client is registered with skip_consent: whatever it asks
for is granted with no screen for anyone to review.

Must stay in step with packages/db/seeds/cli-oauth-client.sql in the
api repo, since authorize validates the request against the scopes that
client is registered with.
@a-essawy
a-essawy merged commit 77a4a61 into main Sep 1, 2026
2 checks passed
@a-essawy a-essawy mentioned this pull request Sep 1, 2026
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