Skip to content

Salesforce as your sign in option

Scalekit enables apps to easily let users sign in using Salesforce as their social connector. This guide walks you through the process of setting up the connection between Scalekit and Salesforce, and using the Scalekit SDK to add “Sign in with Salesforce” to your application.

A diagram showing "Your Application" connecting to "Scalekit" via OpenID Connect, which links to Salesforce using OAuth 2.0.

By the end of this guide, you will be able to:

  1. Set up an OAuth 2.0 connection between Scalekit and Salesforce
  2. Implement “Sign in with Salesforce” in your application using the Scalekit SDK

Open your Scalekit dashboard and navigate to Social Login under the Authentication section.

Scalekit dashboard showcasing social login setup with various platform integration options.

Click the ”+ Add Connection” button and select Salesforce from the list of available options.

Add social login connections: Google, Microsoft, GitHub, Salesforce.

Add social login connections: Salesforce

The OAuth Configuration details page helps you set up the connection:

  • Note the Redirect URI provided for your app. You’ll use this URL to register with Salesforce.
  • Client ID and Client Secret are generated by Salesforce when you register an OAuth App. They enable Scalekit to authenticate your app and establish trust with Salesforce.

Salesforce OAuth configuration in Scalekit, showing redirect URI, client credentials, and scopes for social login setup.

Salesforce lets you set up OAuth through the Microsoft Identity Platform. Follow Salesforce’s instructions to set up OAuth 2.0

  1. Use the Redirect URI from Scalekit as the Redirect URI in Salesforce’s setup. The URI should follow this format:

    • Development: https://{your-subdomain}.scalekit.dev
    • Production: https://{your-subdomain}.scalekit.com
  2. Copy the generated Client ID and Client Secret into the Scalekit Dashboard

  3. Click “Save Changes” in Scalekit for the changes to take effect

Click the “Test Connection” button in Scalekit. You will be redirected to the Salesforce Consent screen to authorize access. A summary table will show the information that will be sent to your app.

Test connection success