When attempting to log in to VMware Cloud Foundation (VCF) Operations using VCF SSO, the login fails with the following error in the user interface: "Failed to log in with VCF SSO service."
Additional symptoms include:
The following error snippets are found in the access-control.log within the Identity Broker (vIDB) log bundle:
com.vmware.vidm.accesscontrol.resource.auth.TokenResource - Failed during issuing token java.util.concurrent.CompletionException: java.util.concurrent.CompletionException:
com.vmware.vidm.accesscontrol.exceptions.oauth2.UnauthorizedClientException: oauth2.authorization.credentials.invalid com.vmware.vidm.accesscontrol.metrics.ExceptionMetricsPublisher - Exception published of type UnauthorizedClientException
VCF Operations 9.0.x
The issue is caused by a credential mismatch or stale OAuth2 client registration for the VCF Operations component within the VCF Identity Broker. The UnauthorizedClientException: oauth2.authorization.credentials.invalid indicates that the specific OAuth2 client ID or secret used by the Operations appliance is no longer recognized as valid by the identity provider.
To resolve this issue, the VCF SSO registration for the Operations component must be refreshed. Follow these steps: