Skip to content

Log in to Salesforce using Asgardeo

This page guides you through integrating Asgardeo for Single Sign-On (SSO) with Salesforce.

Before you begin

Ensure your Salesforce edition supports SSO. Check the Salesforce documentation.

Create the Salesforce application

Follow the steps given below to register the Salesforce application in Asgardeo.

  1. On the Asgardeo Console, go to Applications.

  2. Click New Application and under SSO Integrations, select Salesforce.

    Select app type in the Asgardeo

  3. Provide a name for the application.

    Select salesforce app in the Asgardeo

  4. Click Create to complete the registration.

  5. Download the SAML Metadata file and copy the Entity ID from the Guide tab of the created application.

Configure Salesforce

Follow the steps below to configure Salesforce for SSO authentication with Asgardeo.

  1. Log in to Salesforce.

    Note

    If using a custom domain, access your organization via the Use Custom Domain option on the Salesforce login page.

  2. Navigate to the Setup > Settings > Identity > Single Sign-On Settings page.

  3. To enable SAML SSO, select the SAML Enabled checkbox under Federated Single Sign-On Using SAML.

  4. Click on the New From Metadata file button and upload the SAML metadata file you downloaded earlier.

    salesforce-sso

  5. In the SAML Single Sign-On settings form, replace the Entity ID with that you copied earlier.

  6. Choose the same certificate for Assertion Decryption Certificate and Request Signing Certificate. Add your Salesforce organization’s URL in Custom Logout URL, and click Save.

    add-entity-id

  7. Scroll down to the Endpoints section and copy the Login URL and Logout URL.

  8. Download the request signing certificate.

Apply the settings in Asgardeo

Return to the Asgardeo Console and do the following.

  1. Navigate to Applications and select your created Salesforce application.

  2. Go to its Protocol tab and enter the following details:

    • Under Assertion consumer service URLs, paste the login URL.
    • Under the Single Logout Profile section, paste the logout URL.
    • Under the Certificate section, select the Provide certificate option and upload the obtained request signing certificate.

Try it out

Now that you have integrated Asgardeo with Salesforce, follow the steps below to test it.

  1. Create the Salesforce guide and add the option to login with Asgardeo to your Salesforce login page.
  2. Create a user in Salesforce.
  3. Using the same email address used to create the Salesforce account, create an account for the user in Asgardeo.
  4. Access your Salesforce login URL on an incognito or private browser.
  5. Log in to Salesforce using Asgardeo and enter the user's credentials. The user will be logged in and redirected back to Salesforce.

Troubleshooting guidelines

To troubleshoot SSO failures on the Salesforce side, you may use the Salesforce SAML Assertion Validator. Follow the Salesforce documentation to learn more.