Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Django application for FIDO protocol
Django-fido provides basic components for FIDO 2 authentication - model to store user's FIDO 2 authenticator data and basic views.
Add django_fido
to INSTALLED_APPS
.
Add django_fido.backends.Fido2AuthenticationBackend
to AUTHENTICATION_BACKENDS
.
Link django-fido URLs into your urls.py
:
urlpatterns += [
url(r'', include('django_fido.urls')),
]
If you wish, set string variable DJANGO_FIDO_RP_NAME
.
Default: False
Purpose: Set to True to enable discoverable credentials, private key and associated metadata is stored in persistent memory on the authenticator. This is useful for passwordless authentication.
You can also decide to use one step authentication. In this case, you will use just one authentication form, that will collect username, password and FIDO2 credentials. In addition to the configuration above, you also need to:
DJANGO_FIDO_TWO_STEP_AUTH
to False
.django_fido.backends.Fido2AuthenticationBackend
with
django_fido.backends.Fido2GeneralAuthenticationBackend
in AUTHENTICATION_BACKENDS
.DJANGO_FIDO_AUTHENTICATION_BACKENDS
to the list of your additional authentication backends, if you use others
than django.contrib.auth.backends.ModelBackend
.data-autosubmit-off
attribute on the form element of your login page.Please note that your login form must have a field named username
, even if your USERNAME_FIELD
is not username
.
If you want to be able to download authenticator metadata, you need to set DJANGO_FIDO_METADATA_SERVICE
setting which is a dictionary.
The MDS is available in two versions v2 (deprecated) and v3 (current).
If you want to use MDSv2, you have to set a valid ACCESS_TOKEN
.
If you want to use MDSv3, you have to set MDS_FORMAT
to 3
and set a valid URL
providing the MDSv3 data.
Then you can periodically run the download_authenticator_metadata
management command.
If metadata are available for the given Authenticator
, its metadata
property will be an object.
The level
, vulnerabilities
and is_update_available
methods on metadata
can be used to determine the trust and certification level.
This authentication requires "discoverable credential" and using that credential to perform a user lookup using the passwordless authentication backend
DJANGO_FIDO_RESIDENT_KEY
to True
django_fido.backends.Fido2AuthenticationBackend
with
django_fido.backends.Fido2PasswordlessAuthenticationBackend
in AUTHENTICATION_BACKENDS
.Set DJANGO_FIDO_USER_VERIFICATION
to required
, preferred
or discouraged
, default is None
See changelog.
Use tox
to run tests
tox
See LICENSE.
user_handle
in admin readonlyFIDO_CERTIFIED
from AUTH_LEVELS
fido2
library >0.9.0
fido2
library to <0.9.0
.InvalidAttestation
error in registration view.error
key in repsponse of BaseFido2RequestView
is now deprecated and will be removed in the futuredisplayName
attestation_types
to Fido2ViewMixin
to specify allowed attestation types during registration.DJANGO_FIDO_AUTHENTICATION_BACKENDS
to list containing django.contrib.auth.backends.ModelBackend
DJANGO_FIDO_AUTHENTICATION_BACKENDS
. It is now empty list.Fido2ModelAuthenticationBackend
with more general Fido2GeneralAuthenticationBackend
.label
has to be unique for user. This can potentialy break if you have multiple tokens for user.DJANGO_FIDO_RP_NAME
setting.credential_data
field.polint
environment in tox.BaseU2fRequestView.get
FAQs
Django application for FIDO protocol
We found that django-fido demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.