When trying to get a token for the admin user of Ops Manager, the following error is encountered:
$ uaac token owner get opsman -s ""
User name: admin
Password: ********************************
error response:
{
"error": "invalid_client",
"error_description": "The client is not authorized for any identity provider that supports password grant."
}
attempt to get token failed
Tanzu Operations Manager
VMware Tanzu Platform - Cloud Foundry
The Ops Manager UAA authentication was configured with SAML or OIDC Identity Provider.
Use the following command instead to get the token. It should prompt you for a Passcode. Navigate to the URL that is given in the prompt to get the passcode, and then copy & paste that passcode into the prompt.
$ uaac token sso get opsman -s ""
Passcode (from https://opsmanager.example.com/uaa/passcode):