Repository navigation
fix(oauth): make Box sign-in work - #15421
Conversation
|
Review complete. No issues found — approved ✅. This PR repairs the Box OAuth2 provider, which previously sent malformed scope parameters and hit a non-existent user-info path. Scopes in the authorize URL are now space-separated per the Box spec and omitted entirely when none are requested, letting Box fall back to the scopes configured on the app. The hardcoded
Reviewed commit: 85b0300 |
🟢 Tier S · Ready to merge
The Box OAuth2 adapter now reads the current-user profile from Latest changes: The newest commits leave Box's default scopes empty, add explicitly configured scopes to the authorization URL with a space delimiter, omit scope from token requests, and add adapter regression tests.
📂 Walkthrough · 2
✅ Fixed since the last review · 1
Reviewed the commits since |
This reverts commit d5e96cf.
fix(oauth): remove JWT-only manage_app_users scope and space-delimit Box scopes
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Stripe, Autodesk and Box sign-in, and the Pinecone, LangChain RAG, Replicate and Redis Cloud templates were held back from the catalog because they didn't work as released. Their fixes are merged (#15414, #15416, #15417, #15421 and appwrite/templates#498), so add their pages: - Autodesk is new. The others come from the held-back drafts, without the workarounds for the template variable names and the hardcoded Redis port. - The template pages say what Any execute access exposes and how to narrow it, like the other template pages. - The pages list Cloud only, because no self-hosted release includes the fixes yet. Each page gets a cover in the catalog style. Etsy sign-in and the GitHub issue bot template still don't work, so they stay out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes #15371.
manage_app_users, which Box only allows for server-side (JWT) apps. A user-authentication OAuth app getsinvalid_scope: Unsupported scope was requested.and sign-in stops there. No scope is requested by default now, so Box grants the scopes configured on the app; custom scopes are joined with spaces, as Box expects. The token request no longer sends a scope.https://api.box.com/2.0/me, which returns 404. It now uses/2.0/users/me.Tested against a real Box OAuth 2.0 (user authentication) app:
error=invalid_scope.