/usr/lib/vmware-vcops/user/logvcfops-bridge.log contains API session failures (401 Unauthenticated) when registering components.config.OPERATIONS.vcf.sso.ops.cluster.id.Stale Single Sign-On configuration artifacts remain in the Identity Broker database, preventing the environment from accepting a new SSO configuration workflow.
{{vcfops-ip}} and vcfops-password)curl -k GET --location 'https://{{vcfops-ip}}/suite-api/api/auth/token/acquire' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "username":"admin", "password":"vcfops-password"}' In order to get the vidbResourceId you can use the following curl command (replacing {{vcfops-ip}} and {{token}} ):
curl -k GET --location 'https://{{vcfops-ip}}/suite-api/internal/vidb/identityproviders' \--header 'Accept: application/json' \--header 'Content-Type: application/json' \--header 'Authorization: vRealizeOpsToken {{token}}' \--header 'X-vRealizeOps-API-use-unsupported: true'
replacing {{vcfops-ip}} and {{token}} in command below)vidbResourceId (marked by #'s in the command below) curl --insecure --location --request DELETE 'https://{{vcfops-ip}}/suite-api/internal/vidb/identityproviders?vidbResourceId=########-####-####-####-############&purgeSSOConfig=true' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: vRealizeOpsToken {{token}}' \
--header 'X-vRealizeOps-API-use-unsupported: true'
Example for Postman usage (vidbResourceId is masked):chmod +x cleanup_auth_sources.sh ./cleanup_auth_sources.sh