CLI login using authentication type OpenID (Red Hat SSO on OCP) fails
Issue
-
oc loginwith auseridthat is associated with authentication type OpenID which utilizes Red Hat SSO on the backend fails with the following error:Login failed (401 Unauthorized) Verify you have provided correct credentials. -
The same credentials work from the WebUI using the OpenID authentication type.
- The password,
ldapandbasicauthauthentication types work just fine from the command line, it is just the OpenID/Red Hat SSO authentication that is failing, and only at the command line.
Environment
- OpenShift Container Platform 4.6
- Red Hat Single Sign On(RH SSO)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.