Open
Description
openedon Feb 3, 2022
I am creating a Vs Code web extension with OAuth2 based authentication (similar to Github Authentication in VS Code).
I'm using vscode.env.openExternal
to initiate the login process, which opens a new tab. Is there another option to open the same process in a popup window using VS Code's Extension API? Github Authentication uses a popup window for the same. I wasn't able to find the particular VS Code's Extension API.
Requests
- Provide an Extension API for opening OAuth2 links in a popup window instead of opening a new tab, so the user doesn't have to leave the vscode.dev's browser tab while trying to authenticate. The whole authentication, redirection, and URL capture by vscode's URI handler should happen without switching to another tab.
What seems to be the issue?
- I'm using
vscode.env.openExternal
to initiate the login process, which opens a new tab. This forces the user to leave the current vscode.dev's context and hence ruining the user experience. On the other hand, the Popup window for OAuth2 is a very popular pattern for authentication, which most of the users are already familiar with, so that pattern would make things easier for the users.
Version: 1.63.2
Commit: 899d46d
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Embedder: vscode.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment