Skip to main content

Python webauthn software authenticator

Project description

Python software webauthn token

Build Status

Package is used for testing webauthn enabled web applications. The use-case is authenticator and browser emulation during web application development continuous integration.

SoftWebauthnDevice class interface exports basic navigator interface used for webauthn features:

  • SoftWebauthnDevice.create(...) aka navigator.credentials.create(...)
  • SoftWebauthnDevice.get(...) aka navigator.credentials.get(...)

To support authentication tests without prior registration/attestation, the class exports additional functions:

  • SoftWebauthnDevice.cred_init(rp_id, user_handle)
  • SoftWebauthnDevice.cred_as_attested()

There is no standard/specification for Client (browser) to Relying party (web application) communication. Therefore the class should be be used in a web application test suite along with other code handling webapp specific tasks such as conveying CredentialCreationOptions from webapp and PublicKeyCredential back to the webapp.

The example usage can be found in tests/ (Token/Client vs RP API) and tests/ (Token/Client vs RP HTTP). Despite internal usage of yubico/python-fido2 package, the project should be usable againts other RP implementations as well.



git clone
cd soft-webauthn
ln -s ../../ .git/hooks/pre-commit

# OPTIONAL, create and activate virtualenv
make venv
. venv/bin/activate

# install dependencies
make install-deps

# profit
make lint
make test
make coverage

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for soft-webauthn, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size soft_webauthn-0.1.2-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size soft-webauthn-0.1.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page