Genesys Cloud API authentication flow fails with the following error visible in the Okta dashboard:
Error authenticating: Unauthorized. Errors reported by remote server: Invalid login credentials.; PubApiError[status=401,code=bad.credentials, message=Invalid login credentials.]; contextId:[ ***** ]
- Genesys Cloud
- Provisioning
This error is generated because the SCIM Domain and/or API Token used to create the API connection are invalid.
-
Go to the Okta Admin Console and navigate to Applications > Applications > Genesys Cloud > Provisioning > Integration, then click the Edit button.
-
Click Edit and complete these fields (Refer to Genesys's documentation Configure Okta for Genesys Cloud SCIM).
- SCIM Domain: Enter the URL of the SCIM endpoint. Use the domain associated with the location of the Genesys Cloud organization.
- API Token: Enter the bearer token. The bearer token is the access token returned when making an API call in Postman. For more information, see Genesys' documentation on token generation.
-
Click Test API Credentials, verify the successful connection, and click Save.
