I know this must have been posted here and I've tried the solutions I've searched across the web but I am still getting the error
{"error":"unsupported_grant_type","error_description":"grant type not supported"} when I try to perform a cURL request to my sandbox org.
I've configured the connected app as follows:
Relaxed IP Restrictions Allowed users to self authorize
Built my cURL request from a Mac terminal: (Tried password with security token also, but same result)
curl --location --request POST 'https://test.salesforce.com/services/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=password' \ --data-urlencode 'username=xxxxxxx' \ --data-urlencode 'password=xxxxx' \ --data-urlencode 'client_id=xxxxxxxx' \ --data-urlencode 'client_secret=xxxxxxxxx'
{"error":"unsupported_grant_type","error_description":"grant type not supported"}curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: grant_type=password
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: xxxx.com.rdc.phase1
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: password=xxxxx
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: client_id=xxxxxxx
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: client_secret=xxxxxx
Please advise, thank you in advance!