Skip to main content

Django User model without password field

Project description

Installation

$ [sudo] pip install django-passwordless-user

Pros

  • 3rd party/social authentication without password

Examples

settings.py

AUTH_USER_MODEL = 'users.User'

users/modes.py

from django.db import models
from django_passwordless_user.models import AbstractBaseUser

class Token(models.Model):
    token = models.TextField()

class User(AbstractBaseUser):
    login = models.TextField(unique=True)

    USERNAME_FIELD = 'login'

    class Meta:
        db_table = 'users_user'

    def get_salted_hmac_value(self):
        token = Token.objects.get(pk=self.pk)
        return token

readme42.com

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-passwordless-user-2020.7.2.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file django-passwordless-user-2020.7.2.tar.gz.

File metadata

  • Download URL: django-passwordless-user-2020.7.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7

File hashes

Hashes for django-passwordless-user-2020.7.2.tar.gz
Algorithm Hash digest
SHA256 a390afb919657a156d834742a41a0eda5d90d4a0fdadab8f11e93aaca52fa45a
MD5 9a7c90bbb0bcde56c1d5b7fc5a3fcc48
BLAKE2b-256 72726bf1c497381c98479fcf80714295172b7ed95936a0ed163ec6c955efe466

See more details on using hashes here.

Supported by

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