Coverage for src/django_otp_webauthn/apps.py: 100%
14 statements
« prev ^ index » next coverage.py v7.5.4, created at 2024-06-23 20:15 +0000
« prev ^ index » next coverage.py v7.5.4, created at 2024-06-23 20:15 +0000
1from django.apps import AppConfig
2from django.core.checks import Tags, register
3from django.utils.translation import gettext_lazy as _
5from django_otp_webauthn import checks
8class OtpWebauthnConfig(AppConfig):
9 default_auto_field = "django.db.models.BigAutoField"
10 name = "django_otp_webauthn"
11 verbose_name = _("OTP WebAuthn")
13 def ready(self):
14 register(checks.check_settings_supported_cose_algorithms, Tags.security)
15 register(checks.check_settings_dangerous_session_backend_used, Tags.security)
16 register(checks.check_settings_allowed_origins_missing, Tags.compatibility)
17 register(checks.check_settings_allowed_origins_misconfigured, Tags.compatibility)
18 register(checks.check_settings_relying_party, Tags.models)