Skip to main content
                     __                   __  __         __              ____   _ __
     ________  _____/ /_     ____ ___  __/ /_/ /_       / /_____  ____  / / /__(_) /_
    / ___/ _ \/ ___/ __/ ___/ __ `/ / / / __/ __ \  ___/ __/ __ \/ __ \/ / //_/ / __/
   / /  /  __(__  ) /_  /__/ /_/ / /_/ / /_/ / / / /__/ /_/ /_/ / /_/ / / ,< / / /_
  /_/   \___/____/\__/     \__,_/\__,_/\__/_/ /_/     \__/\____/\____/_/_/|_/_/\__/

This libary provides mixins and views to handle signup, login and logout in an API built with django-rest-framework. After login, client applications get a token for the API requests.

Email-based signups are supported out of the box. Other methods require you to specify an extra in your requirements; for example, to use Facebook login you need to depend on rest-framework-auth-toolkit[facebook].

Contrary to other similar modules, rest-auth-toolkit doess not provide a set of Django apps to include and configure in your settings, but a collection of mixins, base classes, base views and simple templates that you can integrate and customize in your own apps.

See the demo app for example usage.

⚠️ This library is in beta stage, make sure to pin your dependencies. Recommended form: rest-framework-auth-toolkit == 0.12.*

See the changelog for breaking changes.

Contributing

To run tests:

export DATABASE_URL=postgres://ratk:ktar@localhost:5432/ratk
tox

You will have to create the ratk role first, for example using psql:

create role ratk login createdb;
alter role rath with password encrypted 'ktar';

Release files for Rest-Framework-Auth-Toolkit 0.14

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

Source distribution (sdist)

Source distribution for Rest-Framework-Auth-Toolkit 0.14
File Size Uploaded
rest_framework_auth_toolkit-0.14.tar.gz 24.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Rest-Framework-Auth-Toolkit 0.14
File Interpreter ABI Platform
rest_framework_auth_toolkit-0.14-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / rest_framework_auth_toolkit-0.14.tar.gz

Download URL rest_framework_auth_toolkit-0.14.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8b7c5db644c154bfc52290f4a717461d3894d904d533ef95545d158689a09300
BLAKE2b-256 checksum
How to use checksums
55fdb71f91106cf2ac5ba3dcd5307b991035658b870e65935990b149bf43113a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / rest_framework_auth_toolkit-0.14-py3-none-any.whl

Download URL rest_framework_auth_toolkit-0.14-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dac37d0b11c7010b3b24d0d5e849314bbd6856f36d88deb9c502c6bc9c47b511
BLAKE2b-256 checksum
How to use checksums
73ba2e011389328526253f5b0c1cba5d83c757b03412eef1119aceb8140a4bac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.14 This release

2 release files

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.1

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