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

Add option to copy URL instead of opening browser automatically #64

Open
bentsherman opened this issue Mar 23, 2022 · 3 comments
Open

Comments

@bentsherman
Copy link

I use WSL, so GUI support is clunky. I got it to work, but I would like to be able to just copy the authentication URL into my native browser instead of gsts trying to open a browser automatically. Google Cloud's gcloud does this for example.

Would it be possible to implement this flow, enabled by a command line option?

@ruimarinho
Copy link
Owner

@bentsherman while still writing to the credentials file, right? I'd need to do some research as I'm not sure how to capture those details outside the running context. You're not looking for gsts console, are you?

@bentsherman
Copy link
Author

It looks like gsts console also opens a browser window. I just want it to print a URL, then I open to that URL myself, authenticate, and gsts captures that event somehow and proceeds.

I see what you mean that the "somehow" part might be tricky. I don't know how gcloud does it, it might use internal APIs that this tool can't access.

In any case, I think it's worth a cursory investigation to see if it's possible, but it's not an urgent issue. I just run an X server in the background, and most of the time gsts can log me in without opening a browser anyway.

@manugarri
Copy link

@ruimarinho would it be possible to have the gsts console browser logic (that works without an xserver) implemented in the regular gsts login?

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