skip to navigation
skip to content

django-simpletwitchauth 1.0

Use this simple module to easily enable authorization in your Django application via Twitch API

Wanna enable your awesome Django application to register and authenticate user using Twitch profiles?
This application was created especially for your needs


  • Easy to use
  • Ready to Twitch channel name changes
  • Username cases are synchronized to Twitch display_name
  • User emails are synchronized to Twitch


Ensure that Django ‘sites’ framework is enabled.

Python package:

pip install django-simpletwitchauth

Add twitch_auth to INSTALLED_APPS

Add twitch_auth.backends.OAuth2Backend to AUTHENTICATION_BACKENDS

Set Twitch application settings

Example using django-environ:

env = environ.Env()

TWITCH_AUTH_CLIENT_ID = env('TWITCH_CLIENT_ID', default='some_client_id')
TWITCH_AUTH_CLIENT_SECRET = env('TWITCH_CLIENT_SECRET', default='some_client_secret')

All available settings:


Defines OAuth2 token scope

Defaults to user_read


Defines protocol that is used to build full authentication callback URI

Defaults to http://


Defines Twitch application client ID


Defines Twitch application client secret


Defines default redirect URI after successful authentication

Defaults to /


  • Run migrations to create database tables for entities.
  • Add somewhere in your templates link to url login_twitch
File Type Py Version Uploaded on Size
django-simpletwitchauth-1.0.tar.gz (md5) Source 2017-07-07 6KB
django_simpletwitchauth-1.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-07-07 12KB