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

[🚀 Request] How to provide vscode-style authentication via API #518

Open
YuggothFungi opened this issue Sep 29, 2022 · 1 comment
Open
Labels
enhancement New feature or request
Milestone

Comments

@YuggothFungi
Copy link

Expected Behavior

  • Some programmatic way to send vscode://url to the instance of VSBrowser

Actual Behavior

  • None found

Steps to Reproduce the Problem

Manual steps are:

  1. VS code creates an URL to the web server
  2. User logs in on the web server and is provided with token from oauth server
  3. Token is returned as vscode://url (vs code's personal app protocol) that is pushed into browser, thus redirecting the call to vs code application
  4. User confirms to pass the URL to VS code and then confirms receiving the URL inside VS code instance - authentication is successful.

How I planned to solve the issue:

  1. Get vscode://url string from oauth server - OK
  2. Request vscode://url by any means - NO SOLUTION FOUND
  3. Wait for notification inside VS Code browser to accept that url - PENDING, but should be trivial

I tried several different ways:

  1. created python script that runs vscode://url. But in my case it starts a new instance of VS Code instead of transferring the URL to Extension host instance.
  2. inside "it" test called await driver.get('vscode://url') - nothing happens
  3. installed matching chromium version and running the same driver.get('vscode://url') from it - it starts new instance of Browser, thus ending my test.

Specifications

  • VSCode version: 1.71.2
  • ExTester version: 4.4.1
  • Platform:
    • [ x ] Linux
    • [ x ] Windows
@YuggothFungi YuggothFungi added the new-issue New issue which was not discussed yet label Sep 29, 2022
@YuggothFungi YuggothFungi changed the title How to provide vscode-style authentication via API *question* How to provide vscode-style authentication via API Sep 29, 2022
@YuggothFungi
Copy link
Author

Currently I can work around this by using CLI command to start VS Code with added " --open-url -- "vscode://url" " arguments.

@djelinek djelinek added enhancement New feature or request and removed new-issue New issue which was not discussed yet labels Oct 4, 2022
@djelinek djelinek added this to the BACKLOG milestone Oct 4, 2022
@djelinek djelinek changed the title How to provide vscode-style authentication via API [Request] How to provide vscode-style authentication via API Jun 9, 2023
@djelinek djelinek changed the title [Request] How to provide vscode-style authentication via API [🚀 Request] How to provide vscode-style authentication via API Oct 17, 2023
@djelinek djelinek added this to ExTester Feb 5, 2024
@djelinek djelinek moved this from New to Backlog in ExTester Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants