Salesforce Connected App OAuth Process in Hybrid Mobile Application

I created a hybrid mobile app using the Starforce Ionic launcher app from this URL: http://coenraets.org/blog/cordova-phonegap-3-tutorial/ .

I had a problem: every time a user logs in, he must allow the connected application. I think that there should be only once that the user should allow and for his subsequent logins he should be granted access, as usual, using Facebook or Twitter OAuth.

I think that I am not setting any parameter or making the right call.

I use the ForceJS SDK and call force.init to initialize it. It automatically invokes a custom oauth plugin for sales for cordova. Please, help.

+5
source share
1 answer

Generally speaking (I am not familiar with the SalesForce mobile developer), if you use the SDK correctly (it seemed difficult to use it, only it did not support the latest versions of Cordoba?), It should support the application. This indicates that the problem is with SalesForce settings.

Inside SalesForce, go to

Setup | Administration Setup | Manage Apps | Connected Apps 

and look

 Require Users to Log In 

option. Is it set up so that users only have to register when they first use the application, and permissions are supported?

If this does not help, try the settings described here here, especially part of the update token.

+2
source

Source: https://habr.com/ru/post/1208651/


All Articles