CWWKS1406E: Unable to load the login page and an invalid client error is displayed

IM access token API (/idprovider/v1/auth/identitytoken) fails when you upgrade from IBM Cloud Pak for Data version 4.7.4. You cannot login to the Platform UI when identitytoken is failed.

Symptoms

The following error is displayed in the log when you generate an IM access token:

Failed to get access token, Liberty error: {"error_description":"CWWKS1406E: The token request had an invalid client credential. The request URI was \/oidc\/endpoint\/OP\/token.","error":"invalid_client"}"

Cause

The login to Platform UI fails due to the IM access token API error.

Resolving the problem

To resolve the IM access token issue, run the following command to restart the oidc-client-registration job:

oc -n delete job oidc-client-registration