oc client requests token while logging in to OpenShift cluster using CLI
Issue
- Why is it required to provide
--username
withoc login
command? - oc client requests token while logging in to OpenShift cluster using CLI.
- Command
oc login
is failing with the error
You must obtain an API token by visiting https://oauth-openshift.apps.test.example.com/oauth/token/request
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.7+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.