Skip to main content

Simple Twitch auth

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

Features

  • Easy to use

  • Ready to Twitch channel name changes

  • Username cases are synchronized to Twitch display_name

  • User emails are synchronized to Twitch

Installation

Ensure that Django ‘sites’ framework is enabled.

Python package:

pip install django-simpletwitchauth

settings.py:

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:

TWITCH_AUTH_SCOPE

Defines OAuth2 token scope

Defaults to user_read

TWITCH_AUTH_PROTOCOL

Defines protocol that is used to build full authentication callback URI

Defaults to http://

TWITCH_AUTH_CLIENT_ID

Defines Twitch application client ID

TWITCH_AUTH_CLIENT_SECRET

Defines Twitch application client secret

TWITCH_AUTH_REDIRECT_URI

Defines default redirect URI after successful authentication

Defaults to /

Usage

  • Run migrations to create database tables for entities.

  • Add somewhere in your templates link to url login_twitch

Metadata

Release files for django-simpletwitchauth 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-simpletwitchauth 1.0
File Size Uploaded Provenance Actions
django-simpletwitchauth-1.0.tar.gz 7.0 kB Without provenance Details for django-simpletwitchauth-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-simpletwitchauth 1.0
File Interpreter ABI Platform Actions
django_simpletwitchauth-1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_simpletwitchauth-1.0-py2.py3-none-any.whl

Total release size: 19.8 kB

Release files / django-simpletwitchauth-1.0.tar.gz

Download URL django-simpletwitchauth-1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
127ef54afa6364af9476ef2c4847a7db540a2822c4b1f12b148299dd4c7fcf65
BLAKE2b-256 checksum
How to use checksums
c8449a4f35d6633bfceb82f1eea1717e50070b38ba24df9e36db23c23fb05a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_simpletwitchauth-1.0-py2.py3-none-any.whl

Download URL django_simpletwitchauth-1.0-py2.py3-none-any.whl
Size 12.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
abe9c988a07ef58501e2445f1488451e0fe281b582405100423f4b4b20dfe33b
BLAKE2b-256 checksum
How to use checksums
b97a8e9757ad2414f278e1138dcc925b3c83991bb709f14f22dab40814a610a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-simpletwitchauth 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page