
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
.. image:: https://img.shields.io/pypi/v/django-otp-yubikey?color=blue :target: https://pypi.org/project/django-otp-yubikey/ :alt: PyPI .. image:: https://img.shields.io/readthedocs/django-otp-yubikey :target: https://django-otp-yubikey.readthedocs.io/ :alt: Documentation .. image:: https://img.shields.io/badge/github-django--agent--trust-green :target: https://github.com/django-otp/django-otp-yubikey :alt: Source
This is a django-otp plugin that handles YubiKey <https://www.yubico.com/yubikey>
_ devices using the Yubico OTP algorithm. This
includes two device definitions: one to verify YubiKey tokens locally and
another to verify them against a web service <https://www.yubico.com/yubicloud>
_.
See django-otp <https://pypi.org/project/django-otp>
_ for more information on
the OTP framework.
.. end-of-doc-intro
This project is built and managed with hatch
. If you don't have hatch, I
recommend installing it with pipx
: pipx install hatch
.
pyproject.toml
defines several useful scripts for development and testing.
The default environment includes all dev and test dependencies for quickly
running tests. The test
environment defines the test matrix for running the
full validation suite. Everything is executed in the context of the Django
project in test/test_project.
As a quick primer, hatch scripts can be run with hatch run [<env>:]<script>
.
To run linters and tests in the default environment, just run
hatch run check
. This should run tests with your default Python version and
the latest Django. Other scripts include:
To run the full test matrix, run hatch run test:run
. You will need multiple
specific Python versions installed for this.
You can clean up the hatch environments with hatch env prune
, for example to
force dependency updates.
.. _hatch: https://hatch.pypa.io/ .. _pipx: https://pypa.github.io/pipx/
FAQs
A django-otp plugin that verifies YubiKey OTP tokens.
We found that django-otp-yubikey demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.