/var/log/vmware/sso/vmware-identity-sts.log we seeINFO sts[66:tomcat-http--28] [CorId=] [com.vmware.vcenter.tokenservice.external.identitymanagement.AdfsIdentityManagementProvider] Refreshed ADFS store data in 3 ms ERROR sts[66:tomcat-http--28] [CorId=] [com.vmware.vcenter.tokenservice.external.identitymanagement.AdfsIdentityManagementProvider] Token endpoint request to proxy URL http://localhost:1080/external-vecs/http1/adfs_fqdn/443/adfs/oauth2/token/ failed with response code 400ERROR sts[66:tomcat-http--28] [CorId=] [com.vmware.vcenter.tokenservice.external.identitymanagement.AdfsIdentityManagementProvider] Login failure for user {Name: user_name, Domain: domain_name}javax.security.auth.login.LoginException: Resource owner password grant authentication failed with response 400 Bad Request at com.vmware.vcenter.tokenservice.external.identitymanagement.AdfsIdentityManagementProvider.doResourceOwnerPasswordGrant(AdfsIdentityManagementProvider.java:328)
# curl --insecure --request POST --url https://localhost/api/session -u "<service account username>:<service account password>"
{"error_type":"UNAUTHENTICATED","messages":[]}
VMware vCener Server 8.x
Validate the following for AD service account in ADFS so we can isolate the issue:
https://<ADFS hostname>/adfs/.well-known/openid-configuration
The endpoint should list "password" as a support grant type.
"grant_types_supported": [
"authorization_code",
"refresh_token",
"client_credentials",
"###",
"###",
"password",
"###",
...
],
curl -v -k -X POST --location "https://<adfs hostname>/adfs/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "client_id=<client id>" --data-urlencode "client_secret=<client secret>" --data-urlencode "username=<user@domain>" --data-urlencode 'password=<password>' --data-urlencode "grant_type=password"
A successful request will have the below end of the response:
{"access_token":"#############################............"}
"Unable to process password_grant request. Password authentication is not enabled on the STS"
With the above error for STS, reach out to ADFS team or Microsoft for further support to address the issue.