docs icon indicating copy to clipboard operation
docs copied to clipboard

How can I athenticate by client credentials flow in Sandbox env?

Open jossperdomo opened this issue 5 years ago • 4 comments

Recently I tried to authenticate using my sandbox business user by client credentials flow. I did the following request

curl -X POST https://api-sandbox.uphold.com/oauth2/token \
>   -H "Content-Type: application/x-www-form-urlencoded" \
>   -u <client-id>:<client-secret> \
>   -d 'grant_type=client_credentials'

But I receive as response

{"error":"unauthorized_client"}

Could anyone please help me with this? Thanks!

jossperdomo avatar Apr 14 '19 04:04 jossperdomo

Yeah, I'm receiving the same error,

tycooperaow avatar Nov 26 '19 04:11 tycooperaow

did anyone resolve this

eiromz avatar Jun 10 '20 14:06 eiromz

yeah, I'm facing the same error,

I think its come when account not verified

osmtechnologies avatar Aug 12 '20 05:08 osmtechnologies

Apologies for the late response, folks. It's likely that the issue you were facing was due to the requirement that only manually approved accounts can request an access token using the client credentials flow. This is indicated in the documentation as such:

For business usage only you may choose to use client credentials authentication. This requires manual approval from Uphold.

...but it wasn't made explicit that this also applied to the Sandbox environment.

The good news is that we recently removed that requirement for the Sandbox environment (it's still in place for the production environment), so you should now be able to use the client credentials flow to obtain an access token. We'd appreciate if you could confirm that the issue is solved, so that we can close it.

waldyrious avatar Dec 18 '20 10:12 waldyrious