VCF Operations SSO Error: 'Failed to log in with VCF SSO service.'
search cancel

VCF Operations SSO Error: 'Failed to log in with VCF SSO service.'

book

Article ID: 442137

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

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

Environment

VCF Operations 9.0.x

Cause

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.

Resolution

To resolve this issue, the VCF SSO registration for the Operations component must be refreshed. Follow these steps:

  1. Log in to the VCF Operations interface with administrative privileges.
  2. Navigate to Fleet Management > Identity & Access > VCF Management > Operations Appliance.
  3. Click Edit and review the warning message on the popup.
  4. Toggle VCF SSO Enabled to off position.
  5. Click Continue and wait for the configuration to complete.
  6. Reconfigure SSO for the Operations component and select the existing Identity Broker from the dropdown menu 
  7. Navigate to Administration > Control Panel > Access Control > User Groups.
  8. Import the required SSO group(s).
  9. Assign the appropriate role and object scope to the newly imported SSO group(s).
  10. Attempt to log in to the VCF Operations URL using VCF SSO to verify the fix.

Additional Information

How to Reset SSO in VCF 9.0

Login to VCF Operations using SSO fails with "Failed to log in with VCF SSO service. JWT token is expired."