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 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';
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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8d0f73ddb36e1b82e4f1f5d5d883cabc525ec699230d36c36efcef6a96e67d |
|
MD5 | 08e682377e4694d8d0e2a06516ff2b20 |
|
BLAKE2b-256 | d2325ac0e3152861ea778239d085ec1223cf90afb7b62e33eb02347364f675d7 |
Hashes for rest_framework_auth_toolkit-0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fc23c3e8313ff7a46ef3ecab0100937bf46951736b891275455900272f30799 |
|
MD5 | ea1effdefc6332f7186d82cee7ea0695 |
|
BLAKE2b-256 | dc6eb1d0cbc4baa64a3a12218f6e7efffdf20d3f32a9b98c959c29149b6a2683 |