Opinionated Django REST auth endpoints for JWT authentication and social accounts.
Project description
django-df-auth
This is a simple opinionated module that implements JWT authentication via REST API. For more complex applications please consider using an external authentication service such as https://goauthentik.io
The module is a glue and uses:
- drf - for the API
- simplejwt - for JWT
- pysocial - for social login
- django-otp* for otp and 2fa
- twilio - for text messages
The module also provides very limited extra functionality to the packages above:
- otp devices management OTPDeviceViewSet
- Create, Delete
- user registration and invitation methods and template
- standard User fields = first_name, last_name, email, phone
- extra User fields / serializer override in settings
- phone number white/black listing rules (to be removed?) => registration identity blacklist?
Blacklisting:
- phone / email registration blacklisting (e.g. premium numbers, disposable emails ) regex
- otp sending blacklisting
- ip address blacklisting (honey trap)
- usernames pattern - avoid religiously offensive words
The OTP supports following flows:
- otp (email/phone/static/totp) verification - can also be used for confirming email/phone
- 2FA
- magic signin link
Registration Signup 2FA Management
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
django_df_auth-1.0.11.tar.gz
(17.5 kB
view details)
Built Distribution
File details
Details for the file django_df_auth-1.0.11.tar.gz
.
File metadata
- Download URL: django_df_auth-1.0.11.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442b92da172f057951f59b09d2781938b7849dc168a7416481c522021df90e5b |
|
MD5 | a83cfe5736d298a678a58b6ece2ab544 |
|
BLAKE2b-256 | 3620e3317dec0b062464b3ba63a44892cd5df84916f5654e90e1bedc07d2403f |
File details
Details for the file django_df_auth-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: django_df_auth-1.0.11-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9e0921449b0f12757b2dad97058eb69e2a32b509609852fcb976e2d9b4227b |
|
MD5 | 55ac514384b580dd2bac4b4cfbf98774 |
|
BLAKE2b-256 | ee5df0e9f7acbcbcc26c3679c3101d765090e3096c4d4c6bd780cd9e05dc41c6 |