Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I am trying to connect to Salesforce.com using their OAuth 2.0 interface. I have found solutions like LROAuth2Client that allow me to open a webpage and authenticate like that. But is there a way to do this all through the backend without going to a webpage first so I can have it more integrated into the App?

I am new to OAuth so I don't know all the limitations.

Thanks in advance

1 Answer

0 votes
by (32.1k points)
edited by

Salesforce supports the OAuth2 username/password option, which can be done without a webpage. 

e.g. using curl you'd do

curl -v https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxxxxxxxx" -d "client_secret=1234567890" -d "[email protected]" -d "password=XXXXXXXXX"

Enroll in our Salesforce training to become an Expert in Salesforce! 

Related questions

Browse Categories

...