Skip to main content

django-social-auth-rest

Social login for Django REST Framework - with account linking, JWT tokens, and room to grow.

Python 3.12+ Django 5.0+ License: MIT

Read the full docs →

What This Does

django-social-auth-rest lets your users sign in with their social accounts (Google, GitHub, etc.) and returns JWT tokens your frontend can use right away. It also handles connecting and disconnecting those social accounts after the fact.

Currently supported providers: Google, GitHub More providers are coming soon.

Features

  • Sign in with socail accounts (like google, github) - get back JWT access and refresh tokens
  • Link or unlink social accounts from an existing user profile
  • See which providers a user has connected
  • CSRF protection via signed OAuth state tokens
  • Rate limiting on all auth endpoints
  • Optional support for soft-deleted user accounts
  • Signals you can hook into for things like welcome emails or analytics

Requirements

  • Python 3.12+
  • Django 5.0+
  • Django REST Framework 3.15+

Install

pip install django-social-auth-rest

For setup, provider credentials, the API reference, and signals, see the documentation site:

Contributing

Contributions are welcome. If you find a bug or want to suggest an improvement, please open an issue first so we can discuss it.

More authentication providers are planned - if you'd like to add one, open an issue to coordinate.

License

MIT - see LICENSE for details.

Metadata

Release files for django-social-auth-rest 2.0.9

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-social-auth-rest 2.0.9
File Size Uploaded
django_social_auth_rest-2.0.9.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-social-auth-rest 2.0.9
File Interpreter ABI Platform
django_social_auth_rest-2.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / django_social_auth_rest-2.0.9.tar.gz

Download URL django_social_auth_rest-2.0.9.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f1a9eca8f2edcd23214239499d45b7e20b5c0326b2cece737ea124a58dc96d22
BLAKE2b-256 checksum
How to use checksums
97ebafab87ce054b6e0bbbb87eac0ae7c31ffb8790c5130e5304b53d1988f730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / django_social_auth_rest-2.0.9-py3-none-any.whl

Download URL django_social_auth_rest-2.0.9-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b62097fdb52472714d49bf556318ad7ddde564534fb71af8199cbfb5e386c49
BLAKE2b-256 checksum
How to use checksums
7a95cf6219dc9a49295464e06b84bbf760c7800561022ec50b9b6b4e5b955b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.0.9 This release

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

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