• Yuriy Tsemashko
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello.
I'm trying to integrate Salesforce into my application and i decided to use REST API and user&password authorization. I registered developer account, connected an application with enabled OAuth settings.
It's my settings:

Unfortunelly, i receive "{"error_description":"authentication failure","error":"invalid_grant"}" each time when i do authorization. It's example of my calling:
curl https://test.salesforce.com//services/oauth2/token -d "grant_type=password&client_id=CONSUMERKEY&client_secret=CONSUMERSECRET&username=yuriy%40example.com&password=passwordTOKEN"

Here are my selected scopes:
Access your basic information (id, profile, email, address, phone)
Access and manage your data (api)
Provide access to your data via the Web (web)
Full access (full)
Access and manage your Chatter data (chatter_api)
Provide access to custom applications (visualforce)
Perform requests on your behalf at any time (refresh_token, offline_access)
Allow access to your unique identifier (openid)
Access custom permissions (custom_permissions

Callback URL is just "https://login.salesforce.com/services/oauth2/authorize"

Could you please help me to understand what i'm doing wrong? I ebabled all policies, my user(who i'm trying to log in) is superadmin of this account. Thank you!
 
Hello.
I'm trying to integrate Salesforce into my application and i decided to use REST API and user&password authorization. I registered developer account, connected an application with enabled OAuth settings.
It's my settings:

Unfortunelly, i receive "{"error_description":"authentication failure","error":"invalid_grant"}" each time when i do authorization. It's example of my calling:
curl https://test.salesforce.com//services/oauth2/token -d "grant_type=password&client_id=CONSUMERKEY&client_secret=CONSUMERSECRET&username=yuriy%40example.com&password=passwordTOKEN"

Here are my selected scopes:
Access your basic information (id, profile, email, address, phone)
Access and manage your data (api)
Provide access to your data via the Web (web)
Full access (full)
Access and manage your Chatter data (chatter_api)
Provide access to custom applications (visualforce)
Perform requests on your behalf at any time (refresh_token, offline_access)
Allow access to your unique identifier (openid)
Access custom permissions (custom_permissions

Callback URL is just "https://login.salesforce.com/services/oauth2/authorize"

Could you please help me to understand what i'm doing wrong? I ebabled all policies, my user(who i'm trying to log in) is superadmin of this account. Thank you!