Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

VSCode Extension: Confusing auth UX #45757

@gabtorre

Description

@gabtorre
  • Sourcegraph version:
  • Platform information: Sourcegraph for VSCode 2.2.12+

Steps to reproduce:

  1. Install Sourcegraph for VSCode 2.2.12 and above for the first time.

Expected behavior:

The auth process for Sourcegraph.com (OSS code) and private instances (private code) are separated, and it is clear what Sourcegraph instance you are authenticating.

Actual behavior:

The 'Search your private code' section is misleading since sourcegraph.com doesn't host private code anymore. Since the auth process for Sourcegraph.com and private instances happen under the 'Search your private code' section, users get login errors because it is unclear what instance they are authenticating. If sourcegraph.url is not set in the extension settings.json file, it defaults to sourcegraph.com.

The UI shows a 'Search your private code' section with a 'Create an account button' and a 'Have an account button.'
Screen Shot 2022-12-15 at 4 13 55 PM

'Create an account' opens the browser to Sourcegraph.com and changes the UI to this screen. On this screen, it looks like user should be able to log into their private instance but this attempts a login for sourcegraph.com unless sourcegraph.url is set in the extension settings.json
Screen Shot 2022-12-15 at 4 15 52 PM

Screen Shot 2022-12-15 at 8 15 55 PM

On this screen, the header says 'Search your private code' so users use access tokens for their private instances, and this attempts a login to sourcegraph.com, resulting in an error.
Screen Shot 2022-12-15 at 6 37 36 PM

If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.team/integrations

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions