-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 command line flag to prevent 'tsh login' from opening a browser #3321
Comments
Your browser needs to be open in order to actually pass the authentication data from the identity provider back to Teleport, so I don't think what you're asking is possible. |
I know that I need to open some browser to authenticate. |
On OS X, Is changing your default browser to the correct one not an option? |
At any rate, adding a command-line flag to say "don't open the browser for me" is probably the easiest way to fix this and should be fairly easy to do. |
Thank you for your answers.
I tried to alias
I have a browser for work (the one with authentication) and another for personal life (the default one). That's why I would like to keep separated the two. |
I'd like to take a stab at a PR for this. Looks like I need to add the flag for login, add a boolean to the TeleportClient and the Config structs, and then just check if it's true or false. Do you want the output to be different? Instead of saying "If browser window doesn't open automatically...", just say "click the following URL". |
Yes, if the auto-open behaviour is suppressed then the message should be changed to indicate that the URL needs to be clicked manually. |
Opened PR #3611 for this. |
What happened:
I logged in by running:
tsh --proxy=teleport.corp.blablacar.com login
.My default browser Safari opened.
What you expected to happen:
Nothing (or at least an option to open a specific browser or no browser).
How to reproduce it (as minimally and precisely as possible):
Just run
tsh --proxy=teleport.corp.blablacar.com login
.Environment:
teleport version
):Teleport v4.2.2 git: go1.13.6
tsh version
):Teleport v4.2.2 git: go1.13.6
Browser environment
The text was updated successfully, but these errors were encountered: