Log in to Salesforce using the Asgardeo¶
This page guides you through using Asgardeo to log in to Salesforce.
Note
Ensure your Salesforce edition supports SSO. Check the Salesforce documentation.
Create the Salesforce Service Provider¶
Follow the steps given below to register the Salesforce application in Asgardeo.
-
On the Asgardeo Console, go to Applications.
-
Click New Application and select Salesforce from SSO Integrations section.
-
Provide a name for the application.
-
Click Create to complete the registration.
-
Download the SAML Metadata file and copy the Entity ID from the Guide section.
Configure Salesforce¶
- Log in to Salesforce.
Note
If using a custom domain, access your organization via the Use Custom Domain option on the Salesforce login page.
-
Navigate to Setup > Settings > Identity > Single Sign-On Settings page.
-
On the Single sign-on settings page, check the SAML Enabled box under Federated Single Sign-On Using SAML to enable the use of SAML SSO.
-
Click on the New From Metadata file button and upload the downloaded SAML metadata file of the Asgardeo.
-
In the SAML settings form replace Entity ID you copied earlier.
-
Choose the same certificate for Assertion Decryption Certificate and Request Signing Certificate. Add your Salesforce organization’s URL in Custom Logout URL, and click the Save.
-
Scroll to the Endpoints section and copy the Login (Assertion consumer service URL) and Logout URLs.
- Download the Request Signing Certificate.
SAML Configurations in Service Provider¶
Make the following changes to the created service provider.
-
Go to protocol section.
-
Paste the Login (Assertion consumer service URL) and Logout URL into their respective fields, and upload the downloaded certificate.
Try it out¶
Do the following steps to test out the configurations for a new user in Salesforce and the Asgardeo.
- Add login options to your Salesforce login page following Salesforce guide.
- Create a user in Salesforce.
- Create a user with the same email address as their Salesforce username in Asgardeo.
- Access your Salesforce login URL on an incognito or private browser.
- Log in using the newly added login option which is available in login page using the new credentials of the user you just created. Then user will redirected back to Salesforce.
Troubleshooting guidelines¶
Additional troubleshooting information regarding any Salesforce side SSO failures can be retrieved by using Salesforce SAML Assertion Validator. Further information regarding the steps are available here.