Cannot login to OpenShift via Azure AD with multiple redirection on CLI
Issue
- Azure Active Directory is used as the authentication provider in OCP or ARO cluster.
- Authentication is successful through the OpenShift console but not through the
oc
CLI command. - Multiple redirections are involved in the authentication process when logging in via OpenShift Console. Is there any way to log in using the AAD through
oc
CLI (oc login
command)?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Azure Red Hat OpenShift (ARO)
- 4
- OpenShift Managed (Azure)
- 4
- Azure Active Directory (AAD)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.