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.0a18.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for django_df_auth-1.0.0a18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dcd49b2c201721b035946c31d567274228a088a48403a7dd7d28d5b01042d9f |
|
MD5 | 16211419a9a12b37681a1cb96ba12417 |
|
BLAKE2b-256 | f5657ec58e46ad5e541f1d82f32b072ad7c6fac5e26bf25a027e8b7f7b8a9d1a |