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
Hashes for Rest_Framework_Auth_Toolkit-0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac73f0ddb764bb1832533ac1b6c6d763f64c42abe8a2db9f84cf7db3f40096f4 |
|
MD5 | 60e6b51adba535584e40407df9d517f4 |
|
BLAKE2b-256 | 1cf4b7b6762dc707a8594224c6949996ba5536b42d2d4e7713ff145d51ac799b |
Hashes for Rest_Framework_Auth_Toolkit-0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db1ce231fb017369949fb676309b44134e07d0b718cccb58a83d03a9d326df40 |
|
MD5 | cfedef3d72578f6ce250c9e420fd66da |
|
BLAKE2b-256 | 7ac1b8fcfb7615a3a243c4a2dcf02112406c7ec480b57bd86ee4ddb99fed2d4f |