Thursday, 5 May 2016

Access Token Generation | OAuth 2.0 | Connected App | Rest API Access Token

Problem:- How to Generate OAuth token to execute the Rest API.

Step 1:- Create the connected App. (This is one time activity only)


Then click on Connected App

Then Enter all required values and Save.

Step 2:-  Get Consumer key and Consumer Consumer Secret Values

Copy Consumer Key and Consumer Secret .

Step 3:- Open Mozilla and under that open Rest Client using Plugin.
( If not available then please install plugin from below link)


Step 4:- Generate URL

Use below link to Generate the Token for accessing SFDC***Consumer Key_Here***&client_secret=***Consumer Secret_Here***&username=*********&password=*****password+securityToken******

Consumer key should be client id  and consumer Secrete should be client secrete

Change the user id and passwords as per your id 

Step 5:- Give the link in the URL and it would generate the Access Token

The three primary endpoints used with OAuth 2.0 are:
  • Authorization—
  • Token—
  • Revoke—
For a sandbox, use instead of

Related Post


Amit Chaudhary


  1. What’s the dominant personality trait that you need your customers to associate with your business?
    <a href=">salesforce consulting services</a>


  2. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.

    Online Reputation Management

  3. This content creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks.
    Branding Services in Chennai