aws / aws/aws-toolkit-vscode

extension login with non-default browser and remote vscode mode has no effect

Open
#3,229 3 comments 0 reactions 0 assignees View on GitHub
auth-credentials bug remote-execute
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem

I can't figure out how to get the extension logged in so the explorer works

## Steps to reproduce the issue

1. Clean slate
2. install firefox, make default browser (perhaps unrelated, IDK).
3. install chrome
4. create a default chrome profile
5. create a second chrome profile for 'work', log into AWS identity centre in that profile
6. create a Hyper-V VM, install ubuntu
7. inside that VM install aws cli v2.current and run `aws configure sso`, verify it works
8. install vscode, add the remote extension, connect to the VM as a remote folder
9. add vscode AWS extension, click on the
![image](https://user-images.githubusercontent.com/499678/225074656-fd5e7ab4-1c89-4041-be56-429f6db555c1.png)

10. Copy the code and put it aside
11. Select 'copy' when given the URL, rather than open, because the default browser doesn't have AWS credentials.
12. Paste the URL into the chrome work profile
13. paste the stashed code into the prompt
14. approve the request
15. close the browser window
16. observe that the VS code extension still says it is expired or invalid

## System details (run the `AWS: About Toolkit` command)
OS: Linux x64 5.15.0-1033-azure
Visual Studio Code extension host: 1.76.1
AWS Toolkit: 1.64.0
node: 16.14.2

Contributor guide

Open the contributing guide

Research direction

Reproduce the login flow in the issue using VS Code Remote and a non-default browser profile, starting with the AWS Toolkit login action and the AWS: About Toolkit system details. Confirm whether approval leaves the extension expired or invalid and whether the explorer remains unavailable; done means the remote extension recognizes the completed login and the explorer works.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript, vscode
Domain
authentication, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.