The Salesforce provider requires you to set the login VIP as the provider model’s ‘key’ (in addition to client id and secret). Production environments use Sandboxes use

HTTPS is required for the callback.

Development callback URL


Salesforce OAuth2 documentation

To Use:

  • Include allauth.socialaccount.providers.salesforce in INSTALLED_APPS

  • In a new Salesforce Developer Org, create a Connected App with OAuth (minimum scope id, openid), and a callback URL

  • Create a Social application in Django admin, with client id, client key, and login_url (in “key” field)