1 个回答
Hi,Please check payload format and it should be in below mentioned format.>> curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "username=mylogin@salesforce.com" -d "password=mypassword123456" >>curl https://instance_name.salesforce.com/services/data/v20.0/ -H 'Authorization: Bearer access_token'https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htmReview below links which had similar issues and had fix's.https://salesforce.stackexchange.com/questions/69161/refresh-token-policy-locked-to-immediatly-expire-tokenhttps://salesforce.stackexchange.com/questions/10759/invalid-grant-expired-access-refresh-token-error-when-authenticating-access-viahttps://salesforce.stackexchange.com/questions/65590/connected-app-avoiding-a-limit-on-a-number-of-issued-tokens-token-expirationhttps://salesforce.stackexchange.com/questions/73512/oauth-access-token-expirationHope above information was helpful.Please mark as Best Answer so that it can help others in the future.Thanks,Vinay Kumar