function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gipsygipsy 

Android Hybrid App without OAuth

Hi,

which are the modifications to do on SFHbridApp.js, bootconfig.js and bootstrap.html of the app sample VFConnector, to not have initial authentication?

Thanks in advance.

Best Answer chosen by Admin (Salesforce Developers) 
Kevin HawkinsKevin Hawkins

You only need to make the configuration change in bootconfig.js.  You can look at the RemoteAppStartData and LocalAppStartData classes in SFHybridApp.js.  Their respective comment blocks explain the options you want to configure for deferring authentication, for instance.

All Answers

Kevin HawkinsKevin Hawkins

You only need to make the configuration change in bootconfig.js.  You can look at the RemoteAppStartData and LocalAppStartData classes in SFHybridApp.js.  Their respective comment blocks explain the options you want to configure for deferring authentication, for instance.

This was selected as the best answer
gipsygipsy

Thank you Kevin

jhennyjhenny

Having trouble getting the VFConnector mobile SDK sample app working. 

 

Should oauthScopes be "web',"api" or "visualforce","api"?

 

The ContactExplorer app seems to work fine, so I suspect the issue has to do with the callback & redirecting the user to the VF page. 

 

Any known issues with that example in the workbook?

 

Thanks

Kevin HawkinsKevin Hawkins

For hybrid apps, we recommend a minimum scope set of "web" and "api" at this point.  The "visualforce" scope, unfortunately, is not generally sufficient for the permissions hybrid apps need to get through the authentication setup.