Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Salesforce REST API Login?

I am examining a sample which is in the salesforce developer site.

In that sample when we click a link it will be redirected to the salesforce login page. If the login successful, then an access token is issued.

I dont want my application to redirect to the salesforce login page. In the existing sample the environment variable is set to,

"https://login.salesforce.com"

What should I do to avoid redirecting to salesforce login page.

like image 247
Easwaramoorthy K Avatar asked Feb 13 '12 10:02

Easwaramoorthy K


People also ask

What was the authentication of API in Salesforce?

Connect REST API uses OAuth to securely identify your application before connecting to Salesforce. OAuth is an open protocol that allows secure authentication for access to a user's data, without handing out the user's username and password.


1 Answers

What you're describing, sounds like OAuth (just because you mention access-token).

There's a good example of OAuth being used in Salesforce below...

http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_at_Salesforce.com

like image 123
david99world Avatar answered Oct 02 '22 18:10

david99world