After upgrading users cannot access Infrastructure Management

After upgrading, an OIDC provider error can be seen when you access Infrastructure Management.

This error can result in the following error message:

OpenID Connect Provider error: Error in handling response type.

Solution: To resolve this issue, complete the following steps:

  1. Log in to your Red Hat OpenShift cluster:

    oc login
    
  2. Change to the Infrastructure Management project:

    oc project management-infrastructure-management
    
  3. Save the secret encoded string to a file and use the base64 command to decode the data and direct the output to another text file.

    oc get secret -o jsonpath='{.data.oidc\.conf}' ibm-infra-management-application-connection | base64 -d | sed -e 's#oidc/endpoint/OP/jwk#idprovider/v1/auth/jwk#g'> oidc_new.conf
    
    cat oidc_new.conf | base64 | tr -d '\n'
    
  4. Replace the value above in the secret ibm-infra-management-application-connection in the oidc.conf

    oc edit secret ibm-infra-management-application-connection
    
    • Replace oidc.conf with the new value in step 3.
    • Save the secret.
  5. Restart the httpd pod in the management-infrastructure-management namespace to pick up the changes by deleting the <httpd_pod_instance_name>. For example,

    oc delete pod `oc get pod | grep httpd | cut -f1 -d" "`