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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb724475ee0f760e9b02bb809fae825da6fcabead9bbca063fcd9f8ffba79d4f |
|
MD5 | 8f735da2924e8c41f786e044020eb62a |
|
BLAKE2b-256 | 86ffd2def92641d2128a2edc31d34320d09bfbb1963ffec32830850af3c9e97f |
Hashes for Rest_Framework_Auth_Toolkit-0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7640899a57dcd2674e9862849e1ab965bfeb403c980cbb2e1f04315077caf7eb |
|
MD5 | 39b271b76fc5250b04083894a7216089 |
|
BLAKE2b-256 | f74ea0b00c0384b79a81c60fc4e13e8d234a3947c301e3802f941e9e5e71f7ca |