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.
AFAICT,
ocm cluster login:--token, prompts for a username and password and logs oc in--token, just opens a page in the browser and exits 0This makes it hard to incorporate ocm cluster login in a shell script.
Instead, with
--tokenthe tool should prompt for a username (or take it from--username) and after (optionally) displaying the page, prompt for the token, and then executeocwith it to log in.