0 votes
1 view
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 (31.8k points)

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"

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...