function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rumit lumiarumit lumia 

OAuth; log in into another system using Salesforce as an authenticator


Can anyone please let me how to make Salesforce as an authenticator for my application?

Like trailhead/workbench/many other applications/dataloader gives option of "login through Salesforce", similarly I need a  functionality where in my user can get logged into my application if he's a valid Salesforce user.

Raj VakatiRaj Vakati
Refer this links
rumit lumiarumit lumia
Hello Raj,

Thanks for your response.
I saw both the links, but the question still persists.
In each of the links, the author has asked the end user/admin to create a connected app for the first time, while the applications like Workbench, Dataloader etc. create the connected app by themselves. And after creating the connected app, they use the client_secret, client_id of the on the fly created connected-app.
Secondly, the demo, by Jeff, shows wherein the user is entering the creds in Salesforce like screen, so I'm still not able to understand how to fetch creds and use in the code ( grant_type=password&client_id=3MVG9lKcPoNINVBIPJjdw1J9LLM82Hn
1955279925675241571&, like the one you mentioned.