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

inconsistent behaviour of "ocm cluster login" w.r.t. the --token flag #412

Open
porridge opened this issue Oct 28, 2022 · 0 comments
Open

Comments

@porridge
Copy link

AFAICT, ocm cluster login:

  • without --token, prompts for a username and password and logs oc in
  • with --token, just opens a page in the browser and exits 0

This makes it hard to incorporate ocm cluster login in a shell script.

Instead, with --token the tool should prompt for a username (or take it from --username) and after (optionally) displaying the page, prompt for the token, and then execute oc with it to log in.

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