Intellipaat Back

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

I'm creating an iPhone application that uses salesforce as it's server-side data component, I need to access the database from the application to retrieve data for whichever user logs into the app, to do this I need to authenticate with Sales force.

I'm using the Rest API Template that was available in XCode after installing SalesForce, but I keep getting this:

SalesForce Login UIWebView

Is there any way I can login to salesforce programmatically? I'd like our use of Salesforce to be 'behind the scenes' so to speak, so that our users never have to directly interact with salesforce themselves, is there any way to do this?

1 Answer

+1 vote
by (32.1k points)

This seems like an OAuth challenge. You need to be able to bypass this by providing a Session-Id. In order to get a Session ID, you'll have to log in with the user's username and password. You can use the SOAP API for this.

Browse Categories