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

gpclient CLI with external-browser #298

Closed
CalleB3 opened this issue Jan 23, 2024 · 9 comments
Closed

gpclient CLI with external-browser #298

CalleB3 opened this issue Jan 23, 2024 · 9 comments

Comments

@CalleB3
Copy link

CalleB3 commented Jan 23, 2024

Hi,
How does one use the CLI and configure it to use an external-browser? Chrome in my case

I tried the new 2.0.0-beta5 release with GUI and that works, besides me getting invalid auth cookies.

I would want to use CLI with Chrome+yubikey, is that possible?
I see the --user-agent is that what should be used to accomplish this? if so, how?

image

@yuezk
Copy link
Owner

yuezk commented Jan 23, 2024

I'll try to add it to the CLI version.

@yuezk
Copy link
Owner

yuezk commented Apr 8, 2024

Planned in 2.2.0

@yuezk
Copy link
Owner

yuezk commented May 7, 2024

Released in 2.2.0, connect the portal with the following command.

sudo -E gpclient connect --default-browser <portal>

Closing it for now.

@yuezk yuezk closed this as completed May 7, 2024
@qraynaud
Copy link

qraynaud commented Jun 6, 2024

This should be reopened since it was rollbacked. This would be very usefull to get this back.

@yuezk
Copy link
Owner

yuezk commented Jun 6, 2024

This should be reopened since it was rollbacked. This would be very usefull to get this back.

@qraynaud What do you mean by this? I didn't roll back it.

Does sudo -E gpclient connect --default-browser <portal> work for you?

@qraynaud
Copy link

qraynaud commented Jun 6, 2024

Sorry. I thought you had. It works on my local computer but not through vscode using remote-ssh. I’m puzzled as to why since aws sso login is opening my browser properly and working as expected.

@yuezk
Copy link
Owner

yuezk commented Jun 6, 2024

It doesn't support launching the default browser from within the SSH session. Are you using the aws cli from SSH session or the host? If the AWS cli works from the SSH session, I can refer to its implementation.

@qraynaud
Copy link

qraynaud commented Jun 6, 2024

Yeah, I'm using the cli from the SSH session. This is somewhat cool!

@yuezk
Copy link
Owner

yuezk commented Jun 13, 2024

@qraynaud The remote SSH session support has been tracked by #375, so we can discuss it further.

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

No branches or pull requests

3 participants