SimpleLogin¶
SimpleLogin uses OAuth 2.0 for Authentication.
On your project settings, you should add SimpleLogin on your
AUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.simplelogin.SimpleLoginOAuth2', )
Register a new app at SimpleLogin App. By default, SimpleLogin whitelists
localhostso your app should work locally. Please set the callback URL tohttp://example.com/complete/simplelogin/replacingexample.comwith your domain when you deploy your web app to production.Add these values of
Client IDandClient Secretfrom SimpleLogin in your project settings file.
The Client ID should be added on SOCIAL_AUTH_SIMPLELOGIN_KEY and the
Client Secret should be added on SOCIAL_AUTH_SIMPLELOGIN_SECRET:
SOCIAL_AUTH_SIMPLELOGIN_KEY = 'client-id'
SOCIAL_AUTH_SIMPLELOGIN_SECRET = 'very-secret'