GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

gpclient CLI with external-browser

Open CalleB3 opened this issue 1 year ago • 1 comments

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

CalleB3 avatar Jan 23 '24 09:01 CalleB3

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

yuezk avatar Jan 23 '24 14:01 yuezk

Planned in 2.2.0

yuezk avatar Apr 08 '24 02:04 yuezk

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

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

Closing it for now.

yuezk avatar May 07 '24 05:05 yuezk

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

qraynaud avatar Jun 06 '24 09:06 qraynaud

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?

yuezk avatar Jun 06 '24 09:06 yuezk

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.

qraynaud avatar Jun 06 '24 10:06 qraynaud

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.

yuezk avatar Jun 06 '24 10:06 yuezk

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

qraynaud avatar Jun 06 '24 11:06 qraynaud

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

yuezk avatar Jun 13 '24 14:06 yuezk