SAP Knowledge Base Article - Public

2668018 - Error message: "Unable to authenticate the client (Login failed - invalid user)" for Oauth Authentication

Symptom

For the OAuth Token call using url: https://<apisalesdemo.successfactors.com>/oauth/token, getting below error message-

"errorHttpCode": "401",
"errorMessage": "Unable to authenticate the client (Login failed - invalid user)"

Environment

Successfactors

Resolution

You should always use a VALID userId (rather than username) in your OAuth token request to avoid the 401 error message.

Now username works for Basic Authentication but for OAuth, we need to use the userId.

NOTE: This may work when the userId and username fields have same value but not otherwise.

Keywords

OAuth Authentication, Unable to authenticate the client (Login failed - invalid user), OAuth, Invalid user , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , Problem

Product

SAP SuccessFactors HCM Core 1805