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
moh3enmoh3en 

connection to force.com database from an external php website

Hi, 

 

I'm new to force.com and I am trying to create a website (customer portal in PHP) so that every salesforce.com member is able to login and see their contacts, invoices, downloadable items(licences) and etc... I've installed the php toolkit 20 and have managed to retrieve my contact's details. However, I have to use a security token in order to login. Is there a way to authenticate and get user specific data without using a security token?thanks in advance.

 

moh3en

SuperfellSuperfell

Yes, you can use the oauth2 flows, these don't require a security token because the user login is done on the salesforce site, see the online help on remote access.

moh3enmoh3en

Thanks for replying back. I red the documentations for oauth2 and it said that the users needs to set up their remote access settings(Call back URL) before using the protocal. Does every user who ever uses my website has to set up their remote access settings? if so, is there a workaround this? I'm mainly aiming to reduce the work that is required by the users.

 

thanks

moh3en

SuperfellSuperfell

No you set it up once when you build your application.