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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Rest_Framework_Auth_Toolkit-0.11b1.tar.gz
.
File metadata
- Download URL: Rest_Framework_Auth_Toolkit-0.11b1.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980ef8c0da8812eb8d84775a047fe09963b97e39b929d28a736f64027aec1597 |
|
MD5 | 8c9234cb51aa630a91e8bf81bfde2e3a |
|
BLAKE2b-256 | 3cffbfb60eb1db26de8df6daa462404d54e0a223ca86df9f82059381fd903f31 |
File details
Details for the file Rest_Framework_Auth_Toolkit-0.11b1-py2.py3-none-any.whl
.
File metadata
- Download URL: Rest_Framework_Auth_Toolkit-0.11b1-py2.py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a786b1cc51eae67451a1d0afb6ae5a611b76b9dd2297d0ddcd01b2d4de08392a |
|
MD5 | d68c4c183f17b1aede173a3082a9553f |
|
BLAKE2b-256 | d44ae5ca3eebc17aa14559d67f7c11a9a91636fef0bed1c4ff38c47e7ee552b0 |