+ Start a Discussion
Rakesh RoyRakesh Roy 

How to get client_id, client secret, and security token?

Hello Experts,
I have registered my app. Could you please help in letting me know how to get:
1. client_id,
2. client secret, and
3. security token

I am trying to implement Oauth pragramatically so that I can use REST API.

Could you please help.

Thanks,
Rakesh
logontokartiklogontokartik
You can get the client Id and Client Secret from the UI and you need to hard code them into your application either as config setting or some constant that can be easily changed. 


If you navigate to Create --> Apps --> you can see connected apps, click on it and you can see consumer key and consumer secret. 

User-added image


For the security token you can get the token via email when you go to my settings --> personal --> reset my securitty token. 


RIyas BasheerRIyas Basheer
It may help you  http://www.salesforce.com/us/developer/docs/api_rest/api_rest.pdf
Rakesh RoyRakesh Roy
@logontokartik : I got my security token by following the steps suggested by you. Many Thanks! I am still not able to see my consumer key and consumer secret.
NaveenReddyNaveenReddy
Hi,
 You could find consumer key,consumer secret at path specified by logontokartik i.e Build->Create->Apps->Connected Apps

I could see them at above path.Pls find Screen shot.

User-added image

Regards,
Naveen
SSE , Salesforce CI expert group
http://www.autorabit.com
tara gurungtara gurung
i want to do some testing with salesforce api but I cannot find clientID and secret keys  in my connectedapps section. I am just using a free trail version. Is it not possible from the free version ? Why is it not showing anything
prince babyprince baby
Can somebody answer this query clearly. Because i find salesforce UI is complicated enough not to give out these information for some unknown reason. I might've explored the whole application i can't find it either. 
Nelson JoeNelson Joe

There is nowhere to navigate Create --> Apps, not in Lightning or Classic.

Exhausted plausible locations. You need a page with this information on, and to reference it in your documentation

Nelson JoeNelson Joe
Oo, solution found: http://stackoverflow.com/a/29112224/849697
farukh sk hdfarukh sk hd
Hi,

This  will help you for sure.Here rest api integration is performed by taking example of two salesforce system.

https://www.sfdc-lightning.com/2019/01/salesforce-rest-api-integration.html
Muhammad Aqeel 6Muhammad Aqeel 6
Hi,
Consumer key and consumer secret (previously client_id and client secret) can be found for connected apps whose Enable OAuth Settings checkbox is checked. 
Andrew HayterAndrew Hayter
Login to Sales Force with the ID you wish to work with, then:

(You may need to change the URL after Https to be your Sales Force domain)

Reset Security Token:
https://tinyurl.com/SF-Reset-Token

View Consumer Key and Secret
https://tinyurl.com/SF-Consumer-and-Secret

View login attempts
https://Your_Salesforce_URL/lightning/settings/personal/LoginHistory/home
Noah GaryNoah Gary
@nelson thanks for the link! Something this intregal to salesforce's functionality should be more easily found.
Kumar Ankit 5Kumar Ankit 5
In the Lightning Experience-> Go to Setup -> Search App-> Go To App Manager -> Locate Your connected app and Click on the "down" arrow on right side of the listed app.-> Select View
The Consumer key and Consumer Secret will be present on the screen.Consumer key-secret SF
 
Jonathan Meltzer 8Jonathan Meltzer 8
Kumar, that is perfect - exactly what is needed to answer this question.