Entra ID users when attempting to login to the vCenter fails with "Access Denied" error.
In vCenter /var/log/vmware/vc-ws1a-broker/federation-service.log you see entries similar to:
ERROR vCenter.example.com:federation (vert.x-eventloop-thread-#) [-;-;-;-;-;-] com.vmware.vidm.federation.authenticator.oidc.OidcAuthenticationService - Token endpoint failed io.vertx.core.impl.NoStackTraceThrowable: invalid_client: AADSTS7000222: The provided client secret keys for app '####-####-####-####-#############' are expired...
OR
ERROR vcenter.example.com:federation (vert.x-eventloop-thread-#) [-;-;-;-;-;-] com.vmware.vidm.federation.authenticator.oidc.OidcAuthenticationService - Token endpoint failed io.vertx.core.impl.NoStackTraceThrowable: invalid_client: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app
VMware vCenter
The client secret key on Microsoft Azure has expired or the value is incorrectly added to the configuration in vCenter.
To resolve the issue follow the below steps:
For additional information refer to How to Enable Entra ID for vCenter Server
YYYY-MM-DDTHH:MM:SS,285 WARN xxxxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;xxxxxxxxxxxxx] xxxxxxxxxxx - Failed to process OIDC authenticationYYYY-MM-DDTHH:MM:SS,285 INFO xxxxxxxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;xxxxxxxx;-;xxxxxxx] xxxxxxxxxxx - Metric published: com.vmware.vidm.common.metrics.model.Metrics@22161bd3YYYY-MM-DDTHH:MM:SS,285 INFO xxxxxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;x.x.x.x;xxxxxxxxxxxxxx;-;xxxxxxxxxxxxxxxxx] com.vmware.vidm.federation.utils.MetricsPublisherUtil - OIDC authentication failedYYYY-MM-DDTHH:MM:SS,296 INFO xxxxxxxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;xxxxxx;-;xxxxxxxxxxx] xxxxxxxxxxx - Deny access based on ruleset resolution result for login contextId: xxxxxxxxxxxxxx with reason code: AUTH_FAILEDYYYY-MM-DDTHH:MM:SS,297 INFO xxxxxxxxxxxxx(federation-business-pool-0) [CUSTOMER;-;xxxxxxxxx;-;xxxxxxxxxxxxxx] com.vmware.vidm.federation.login.LoginEventServiceAspect - Failing login. contextUuid: xxxxxxxxxxxxxxxxxxxx, exception: com.vmware.vidm.federation.login.AccessDeniedException: Access denied with reason code: AUTH_FAILED, isAuthenticationForced: falseYYYY-MM-DDTHH:MM:SS,297 INFO xxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;xxxxxxx;-;xxxxxxxxxx] com.vmware.vidm.federation.utils.MetricsPublisherUtil - Login failed due to reason: AUTH_FAILEDYYYY-MM-DDTHH:MM:SS,297 INFO xxxxxxxxxxxx:federation (federation-business-pool-0) [CUSTOMER;-;xxxxxxxxx;-;xxxxxxxx] com.vmware.vidm.federation.exception.handler.LoginExceptionHandler - Access denied for login context: xxxxxxxxxxxxYYYY-MM-DDTHH:MM:SS,528 INFO xxxxxxxxxxxxx:federation (scheduled-metrics-publisher-1) [-;-;-;-;-;-] xxxxxxxxxxxxxx - Metric published: com.vmware.vidm.common.metrics.model.Metrics@13446751YYYY-MM-DDTHH:MM:SS,286 INFO xxxxxxxxxx:federation (vert.x-eventloop-thread-0) [-;-;-;-;-;-] org.bouncycastle.jsse.provider.ProvTlsClient - [client #22 @796be239] disconnected from login.microsoftonline.com:443
If the log entries match the examples above, follow the steps in the Resolution section to fix the issue