Twilio¶
Backend class¶
For Django, add this class path to AUTHENTICATION_BACKENDS. For other
integrations, use the same class path in the framework-specific backend
setting.
Backend name |
Class path |
|---|---|
|
|
Register a new application at Twilio Connect Api
Fill
SOCIAL_AUTH_TWILIO_KEYandSOCIAL_AUTH_TWILIO_SECRETvalues in the settings:SOCIAL_AUTH_TWILIO_KEY = '' SOCIAL_AUTH_TWILIO_SECRET = ''
Add desired authentication backends to Django’s
SOCIAL_AUTH_AUTHENTICATION_BACKENDSsetting:'social_core.backends.twilio.TwilioAuth',
Usage example for Django templates:
<form method="post" action="{% url 'social:begin' 'twilio' %}"> {% csrf_token %} <button type="submit">Enter using Twilio</button> </form>