OpenShift Gitops Login via OpenShift 4 failed

Solution Verified - Updated -

Issue

  • After upgrading to Red Hat OpenShift GitOps v.1.8.0, log in via OpenShift is not working.
  • The error shown in the openshift-gitops-dex-server pod logs is similar to:

    level=error msg="Failed to authenticate: oidc: failed to get token: oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"unauthorized_client\",\"error_description\":\"The client is not authorized to request a token using this method.\"}\n"
    
  • The error shown in the openshift-gitops-server pod logs is similar to:

    level=warning msg="Failed to verify token: failed to verify token: oidc: expected audience \"argo-cd-cli\" got [\"argo-cd\"]"
    

Environment

  • Red Hat OpenShift Container Platform
    • 4
  • Red Hat OpenShift GitOps
    • 1.8.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content