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
netelenetele 

Authentication with contact info in Salesforce

Hello,

We're looking at deploying salesforce.com in the next couple of months. One thing we would need is the ability to authenticate users in a we portal we have. This is done with username/password info in our contacts database now.

When we move the contact information to salesforce how do we get this done? Is there any documentation out there on how to acomplish this?

 

Thanks.

DevAngelDevAngel

Hi netele,

Would you mind explaining in more detail how the portal is used?  Is it used by employs or is it used by these contacts?

netelenetele

Thanks for the reply.

Used by the contacts we would use in salesforce.

DevAngelDevAngel

So, your contacts are going to login to salesforce.com through your portal?

Is this in the context of self service users?

netelenetele

Not initially.

We would like to use the portal we currently have to provide them with materials and information. We would like to be able to have their usernames and passwords in salesforce and simply authenticate their login into the portal.

Is there any easy way to do this?

What are self-service users?

DevAngelDevAngel

Hi netele,

Ok, I understand.  Sure you could do this.  Create two new fields on a contact record, one for username and one for password.  When the user hits the login button or what ever it might be called on the portal login page, you can run a query against the contact table like "Select Id From Contact where username__c = '" + username + "' and password__c = '" + password + "'".  If the record count returned by the query is 1 then they have entered a valid username and password.

The salesforce.com authentication that you use to run this query should be a view all or administrator login.

netelenetele

Great - that's pretty much what we were looking for.

I'll look into your self-service product for future implementations.

Thanks.