Repository navigation
docs(auth-providers): add the Drive picker's JavaScript origin to Google setup - #1247
Merged
samkujovich merged 2 commits intoOct 16, 2026
Merged
Conversation
…gle setup Custom Google OAuth clients need https://cloud.arcade.dev under Authorized JavaScript origins, or the Google Drive file picker fails with Error 401: invalid_client (no registered origin). Refs: TOO-2585
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
samkujovich
marked this pull request as ready for review
October 15, 2026 23:36
sdreyer
reviewed
Oct 15, 2026
Co-authored-by: Sterling Dreyer <sterling@arcade-ai.com>
pmdroid
approved these changes
Oct 16, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A customer using their own Google OAuth client couldn't grant Arcade access to a Drive folder. The Google Drive file picker link opened Google's popup, and Google rejected it with
Error 401: invalid_client(no registered origin).The picker page runs on
https://cloud.arcade.devand starts Google sign-in in the browser with the provider's client ID. Google only allows that when the page's origin is listed under the client's Authorized JavaScript origins. Arcade's own Google app already lists it. The Google auth provider page only tells custom-client users to add the redirect URI, so they never add the origin. We hit the same error on our staging app and fixed it the same way.Changes
app/en/references/auth-providers/google/page.mdx: adds a step under "Create a Google app" to addhttps://cloud.arcade.devto Authorized JavaScript origins. It says which MCP servers need it, shows the error you get without it, and tells self-hosted users to use the origin of theirarcade.coordinatorUrlHelm value instead.Design decisions
arcade.coordinatorUrl. The worker builds the picker link from Engine's external coordinator URL, which the chart sets fromarcade.coordinatorUrl(or<protocol>://<coordinator hostname>/api/v1). So a self-hosted picker runs on the customer's coordinator host. This follows the code path and hasn't been tried on a real self-hosted install, so a deploy reviewer should confirm it.Test plan
invalid_clientRefs: TOO-2585
🤖 Generated with Claude Code; author is accountable for every line.
Note
Low Risk
Documentation-only change to Google OAuth setup; no runtime or auth code paths are modified.
Overview
Documents a missing Google Cloud OAuth step for customers who bring their own Google client: add
https://cloud.arcade.devto Authorized JavaScript origins, alongside the existing redirect URI step.The new bullet explains that Drive, Docs, Sheets, Slides, and Forms MCP servers use Arcade’s hosted Drive file picker on that origin, and that omitting it causes
Error 401: invalid_client. Self-hosted installs are told to register the coordinator origin (scheme + host) from their Helm configuration instead of the cloud URL.Reviewed by Cursor Bugbot for commit 98f30fe. Bugbot is set up for automated code reviews on this repo. Configure here.