/
Using the Security Connector
Using the Security Connector
This section is applicable to Salesforce Enterprise / Unlimited Edition package.
Authenticating Against Contacts and Leads
/// <summary> /// Attempts to authenticate a user against Salesforce Contacts and Leads /// </summary> private void LoginUser(string userName, string password) { string domainContacts = "salesforce\\"; string domainLeads = "salesforceLead\\"; //Attempt to authenticate against Salesforce Contacts string sfUser = string.Concat(domainContacts, userName); if(Sitecore.Security.Authentication.AuthenticationManager.Login(sfUser, password)) { //User is authenticated against Salesforce Contacts } else { //Attempt to authenticate against Salesforce Leads sfUser = string.Concat(domainLeads, userName); if (Sitecore.Security.Authentication.AuthenticationManager.Login(sfUser, password)) { //User is authenticated against Salesforce Leads } } }
Next Step
Congratulations, you have finished installing this option.
, multiple selections available,
Related content
Install Security Connector for Contacts (Optional)
Install Security Connector for Contacts (Optional)
Read with this
Using the Security Connector (Pre-Sitecore 9)
Using the Security Connector (Pre-Sitecore 9)
More like this
Authenticating Against Contacts and Leads
Authenticating Against Contacts and Leads
More like this
Install Security Connector in Salesforce for Leads
Install Security Connector in Salesforce for Leads
More like this
Install Security Connector for Leads (Optional) (Pre-Sitecore 9)
Install Security Connector for Leads (Optional) (Pre-Sitecore 9)
More like this
Install Security Connector for Leads (Optional)
Install Security Connector for Leads (Optional)
More like this