Python webauthn software authenticator
Project description
Python software webauthn token
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(...)
akanavigator.credentials.create(...)
SoftWebauthnDevice.get(...)
akanavigator.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/test_interop.py
(Token/Client vs RP
API) and tests/test_example.py
(Token/Client vs RP HTTP). Despite internal
usage of yubico/python-fido2
package, the project should be usable againts
other RP implementations as well.
References
Development
git clone https://github.com/bodik/soft-webauthn
cd soft-webauthn
ln -s ../../git_hookprecommit.sh .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.
Source Distribution
Built Distribution
Hashes for soft_webauthn-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eacb98e406b0bc170455f9fd00977400d6129e7c557f872cf118e9431d1cb9e1 |
|
MD5 | af0a19954beb57d132ae3e09d270676a |
|
BLAKE2b-256 | e25bcd4b1738509cdb9382d632c503be0b242d589e4dfe39dcc75d74fcf1618c |