Skip to content

Google Workspace select account chose#3152

Merged
tofikwest merged 3 commits into
releasefrom
main
Jun 16, 2026
Merged

Google Workspace select account chose#3152
tofikwest merged 3 commits into
releasefrom
main

Conversation

@tofikwest

@tofikwest tofikwest commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes COMP-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

  • Show screen recordings of the issue or feature.
  • Demonstrate how to reproduce the issue, the behavior before and after the change.

Image Demo (if applicable):

  • Add side-by-side screenshots of the original and updated change.
  • Highlight any significant change(s).

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

Summary by cubic

Force the Google account chooser in GCP and Google Workspace OAuth so users can switch accounts on connect/reconnect while still getting a refresh token.

  • Bug Fixes
    • Set authorizationParams.prompt to select_account consent in packages/integration-platform/src/manifests/gcp/index.ts and packages/integration-platform/src/manifests/google-workspace/index.ts.
    • Stops silent reuse of the browser’s Google account; fixes reconnects that kept a non-admin account for Workspace.
    • Only affects interactive auth; token refresh and existing connections are unchanged.

Written for commit 57979f0. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 3 commits June 15, 2026 20:19
…connect

The Google Workspace and GCP OAuth flows sent prompt=consent, which forces
the consent screen but not the account chooser. Google then silently reuses
the browser's signed-in Google account, so a customer who connected with the
wrong account (e.g. a non-admin user — Workspace requires an admin) can't
switch accounts on reconnect; re-auth keeps binding the same wrong account.

Add select_account to the prompt (select_account consent) so the account
chooser always appears. consent is retained so a refresh token is still
issued; this only affects the interactive authorize step, not token refresh,
and does not touch already-connected customers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…t-select

fix(integration-platform): force Google account chooser on connect/reconnect
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Jun 16, 2026 4:50pm
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 16, 2026 4:50pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal (staging) Skipped Skipped Jun 16, 2026 4:50pm

Request Review

@tofikwest tofikwest merged commit 6a93d2a into release Jun 16, 2026
13 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.83.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants