Salesforce#
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 https://login.salesforce.com/. Sandboxes use https://test.salesforce.com/.
HTTPS is required for the callback.
- Development callback URL
https://localhost:8000/accounts/salesforce/login/callback/
- 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)