Twilio backend for django-social-auth. Twilio backend added in django-social-auth.
-
Register a new application at Twilio Connect Api
-
fill
TWILIO_CONNECT_KEYandTWILIO_AUTH_TOKENvalues in the settings:TWILIO_CONNECT_KEY = '' TWILIO_AUTH_TOKEN = '' -
Add desired authentication backends to Django's
AUTHENTICATION_BACKENDSsetting:'social_auth.backends.contrib.twilio.TwilioBackend',
Authentication process starts with socialauth_begin URL.
Template code example:
<a href="{% url socialauth_begin 'twilio' %}">Enter using Twilio</a>