Skip to main content

Simple + flexible signup and login for Django APIs

Project description

                     __                   __  __         __              ____   _ __
     ________  _____/ /_     ____ ___  __/ /_/ /_       / /_____  ____  / / /__(_) /_
    / ___/ _ \/ ___/ __/ ___/ __ `/ / / / __/ __ \  ___/ __/ __ \/ __ \/ / //_/ / __/
   / /  /  __(__  ) /_  /__/ /_/ / /_/ / /_/ / / / /__/ /_/ /_/ / /_/ / / ,< / / /_
  /_/   \___/____/\__/     \__,_/\__,_/\__/_/ /_/     \__/\____/\____/_/_/|_/_/\__/

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 not stable yet, make sure to pin your dependencies. Recommended form: rest-framework-auth-toolkit == 0.9.*

See the changelog for breaking changes.

Contributing

To run tests:

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

You will have to create the ratk role first, as well as the ratk and test_ratk databases.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Rest_Framework_Auth_Toolkit-0.12.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rest_framework_auth_toolkit-0.12-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file Rest_Framework_Auth_Toolkit-0.12.tar.gz.

File metadata

  • Download URL: Rest_Framework_Auth_Toolkit-0.12.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.6

File hashes

Hashes for Rest_Framework_Auth_Toolkit-0.12.tar.gz
Algorithm Hash digest
SHA256 fd1393cb7a0f33ba099dde4d044ee70aae30d3d3fe53263f65271b10103eeef3
MD5 06c4d4fe6ca7213380fc8a6130f7bc84
BLAKE2b-256 01efb379a88314f8dc44ca2653007af43e86aeb566a40308c774bdb9921d05aa

See more details on using hashes here.

File details

Details for the file rest_framework_auth_toolkit-0.12-py3-none-any.whl.

File metadata

  • Download URL: rest_framework_auth_toolkit-0.12-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.6

File hashes

Hashes for rest_framework_auth_toolkit-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 55b263367be18ec66adaf4e8c6cd9fb08ae3d2477dd04c5537c74432fdc43cc1
MD5 1f1efbef6bd1fcbee5bb1fbb40e1045d
BLAKE2b-256 f4cb556a7b29a992d005aa4cde3f270e08be520748ebb86cbb853eb1c98d9b11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page