Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode: Support login redirects in VSCodium #3167

Merged
merged 4 commits into from
Feb 15, 2024
Merged

Conversation

dominiccooney
Copy link
Contributor

@dominiccooney dominiccooney commented Feb 14, 2024

VSCodium is a fork of VSCode. It uses a different URI scheme for app links; as a result, our login flow does not work in VSCodium. This changes the login querystring parameter so the browser-based auth flow can redirect to VSCodium when the flow is complete.

sourcegraph/sourcegraph#60515 is the related server-side change.

Fixes #3119, #2704

Test plan

Manually test that login URLs have the CODY_VSCODIUM parameter in VSCodium:

  1. CODY_RELEASE_TYPE=stable pnpm -C vscode release:dry-run
  2. Install VSCodium, run it.
  3. Extensions, ..., Install from VSIX...
  4. Pick vscode/dist/cody.vsix
  5. Click the GitHub login button. You should get directed to a URL like: https://sourcegraph.com/.auth/openidconnect/login?prompt_auth=github&pc=sams&redirect=/post-sign-up?returnTo=/user/settings/tokens/new/callback?requestFrom=CODY_VSCODIUM (note the VSCODIUM part.)

@dominiccooney dominiccooney requested a review from a team February 14, 2024 23:57
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment inline regarding the changelog entry. Code lgtm 👍

vscode/CHANGELOG.md Outdated Show resolved Hide resolved
@dominiccooney dominiccooney enabled auto-merge (squash) February 15, 2024 07:20
@dominiccooney dominiccooney merged commit a84d883 into main Feb 15, 2024
14 of 15 checks passed
@dominiccooney dominiccooney deleted the dpc/vscodium branch February 15, 2024 07:25
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.

It doesn't run on VSCODIUM
2 participants