Skip to main content

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


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.0a14.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_df_auth-1.0.0a14-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file django-df-auth-1.0.0a14.tar.gz.

File metadata

  • Download URL: django-df-auth-1.0.0a14.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for django-df-auth-1.0.0a14.tar.gz
Algorithm Hash digest
SHA256 eb11219d80541ed599ea8aa793eb55703939bf93ba99a9f73e5c1efd15dbcde2
MD5 f7cc5a9e29a5e3fee87ee99c78842084
BLAKE2b-256 4a0f6f2d97cd40d7c4094279efe53b51362bc234c576352e0e7b14642d6e8925

See more details on using hashes here.

File details

Details for the file django_df_auth-1.0.0a14-py3-none-any.whl.

File metadata

File hashes

Hashes for django_df_auth-1.0.0a14-py3-none-any.whl
Algorithm Hash digest
SHA256 24a03f8d6b2b4966eed45da0795b9adfdb3b2396aa162bf916b2bcd0cd40898e
MD5 f9aae2ddf920bd3b7daf16491ee8539d
BLAKE2b-256 272ab5e0674cae86dddabe361b18c7fb3bf4295ab0a375397fd3a0f3608b6d57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page