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

Is it possible to specify browser command? #942

Open
petr-buchin opened this issue Jun 12, 2023 · 1 comment
Open

Is it possible to specify browser command? #942

petr-buchin opened this issue Jun 12, 2023 · 1 comment
Labels
question Further information is requested

Comments

@petr-buchin
Copy link

petr-buchin commented Jun 12, 2023

Describe the question

My company uses Okta as OIDC provider.
I want to configure my WSL 2 Ubuntu distribution to use kubectl oidc-login.
The thing is Okta must be opened in a specific work profile in Google Chrome browser. If I don't specify BROWSER env variable in users[].user.exec.env section in my kubeconfig file, the browser authentication flow is opened in my default browser, which is not Chrome.
If I specify this variable in kubeconfig - browser is not opened at all. From what I saw in code, there is a BrowserOption struct with BrowserCommand field. Do I understand correctly that there is a way to specify this BrowserCommand?

Your environment

  • OS: Ubuntu (WSL 2)
  • OpenID Connect provider: Okta
@petr-buchin petr-buchin added the question Further information is requested label Jun 12, 2023
@rothgar
Copy link

rothgar commented May 2, 2024

This should work with --browser-command which you can specify as an option to get-token in your KUBECONFIG file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants