Skip to main content

dotpla: Django One Time Password Link Authentication

This app adds a new Authentication method to Django, which allows you to generate links with a one-time password so you can allow users to log in directly, without having to define a password. It is not an implementation of two-factor authentication (2FA).

Status

Warning: this project is currently in development, and only supports Wagtail, for now. It is likely to change as/if I have time, but I am developing it primarily for my own uses, so it may not always be the highest priority.

Rationale and Use Cases

This app can be used to share data with selected users from the deep web, without requiring them to register or login. You can create the user account for them, generate a one-time password, and send them a link that will log them in automatically. This allows you to protect data from unauthorized access, but also makes it easy for end-users to access it.

Some potential use cases:

  • Share a tailored version of your CV or cover letter with potential employers.
  • Write a tailored sales pitch for potential customers.
  • Share files with select users.

Installation

Pre-requirements

  • Django 3.2 or greater.
  • Python 3.8 or greater.
  • The Django Messages Framework must be enabled for your project if you want passwords to be displayed in the admin interface.
  • Optional: Wagtail CMS. Tested with Wagtail 4.0.

Usage

TODO.

Caveats

  • The authenticate_with_otp method has potential race conditions allowing users to log in more times than they should. As I only use this with trusted users, it's insignificant enough for me to ignore.

Metadata

Release files for dotpla 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dotpla 0.1.0
File Size Uploaded
dotpla-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dotpla 0.1.0
File Interpreter ABI Platform
dotpla-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / dotpla-0.1.0.tar.gz

Download URL dotpla-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c88d24eda785375a4c719e5afbdad1ea43b9c97a08d52e74e6962eaa4cc0500e
BLAKE2b-256 checksum
How to use checksums
398abd70122c41c64eb4c3ef1ec231baa8a5f8ddbc79af974123effc0aeac92e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/6.1.3-arch1-1

Release files / dotpla-0.1.0-py3-none-any.whl

Download URL dotpla-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c645145f4d1c6cbab0e0eb7a49a6f68e7f9a2b27685a28a889dfeb2af099452c
BLAKE2b-256 checksum
How to use checksums
123a1a82a6dfd3a34264e1a11d2bd4d98534fb51831b1cb8acedecaaa7c1b7f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/6.1.3-arch1-1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page