Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use case
I deployed
I'm accessing it with https://dev2.tuana9a.com from any of mine devices that has a web browser (desktop, tablet, laptop, phone).
In this server I want to use kubelogin to access my internal kubernetes cluster. The kubelogin will listen on port
8000
and that server doesn't have a browser so I skip the open browser step and instead, when the cli run, It should show the url bellowThe vscode-server support exposing port over a custom proxy like
VSCODE_PROXY_URI=https://dev2-{{port}}.tuana9a.com
So that I can go to that url and access the temporary server opened by this oauth2cli and continue the process of authentication.
Current setup only have redirect hostname + port, I think by adding a
RedirectUrl
and let the user decide it could improve the flexibility of the cli.If this go through I would love to open my next PR to add this flag
--oidc-redirect-url
to thekubelogin
cli also. The full config look like thisTests
I have successfully modified the code andI have written e2e test for this usecase and it passed.
Related
This PR may be related to #137 and #117