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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With