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

Support for user interactive auth methods #1632

Open
goenning opened this issue Nov 9, 2024 · 0 comments
Open

Support for user interactive auth methods #1632

goenning opened this issue Nov 9, 2024 · 0 comments

Comments

@goenning
Copy link
Contributor

goenning commented Nov 9, 2024

Would you like to work on this feature?

maybe

What problem are you trying to solve?

Some authentication methods, such as the device code login require the user to open a link on the browser, enter a code, and only then the auth command returns the token.

It doesn't seem like kube-rs currently support this as the auth_exec function doesn't give us the output of the command, it simply hangs on let out = cmd.output() because the Command never exits as it's waiting for external action.

Describe the solution you'd like

I honestly can't think of how this can be solved, so I'm just opening this to get some feedback.

Maybe, not sure if doable: return the output of the command to the caller and let us decide what to do with it (in my case I'd print this to the user, they'd navigate to that link, and the command would eventually return 0 and a token).

Describe alternatives you've considered

Couldn't think of any other, but I'm open to suggestions!

Documentation, Adoption, Migration Strategy

No response

Target crate for feature

kube-client

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

1 participant