You need to sign in to do that
Don't have an account?
Milan Sanghani
Access Salesforce Without Consumer Key and Consumer Secret
Hi,
For accessing salesforce data we need to set Remote Access setting, and have to pass key ans secret with http requst for generating access token, But is there any way that without set Remote setting and without Key and secret (Just passing salesforce Username and Password) we can access salesforce data?????
Short answer: I think it's not possible.
Longer:
Check the bottom of http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com ;
I think that the only way to access SF data with a remote app is by using OAuth, and this requires that you send consumer key and secret when authenticating the app, even if you use username/password grant_type.
But, if i make an appexchange package, users who are going to install application how thay konw that,
what is Consumer key and Secrets?
How to get Key and secrets?
You can first login and get the SessionId, and use this SessionId for further request.
If you're not using OAuth 2.0, you can get your data using Session ID. Check http://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_oauth.htm
Note that you can use this approach if you plan to use only your username and password, and that OAuth is more desireable if you plan to let other users use your application to access their SalesForce data.
Hi,
As my understanding, if you want to use OAuth2.0 username-password flow, you need get the user's security_token and add this security_token in your password like this "password+security_token".
Thank you!