2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-31 13:15:43 +00:00

feat(frontend): add passkey/webauthn for secondary MFA (#9729)

* bump allauth

* add trust

* add device trust handling

* fix style

* [FR] Add passkey as a factor
Fixes #4002

* add registration

* allow better testing

* add mfa context

* fix login

* add changelog entry

* fix registration

* remove multi device packages

* move to helper

* handle mfa trust

* simplify page fnc
This commit is contained in:
Matthias Mair
2025-10-28 08:52:39 +01:00
committed by GitHub
parent 83f674e83f
commit 2e4b1d65f7
9 changed files with 216 additions and 28 deletions

View File

@@ -1386,10 +1386,12 @@ MFA_ENABLED = get_boolean_setting(
MFA_SUPPORTED_TYPES = get_setting(
'INVENTREE_MFA_SUPPORTED_TYPES',
'mfa_supported_types',
['totp', 'recovery_codes'],
['totp', 'recovery_codes', 'webauthn'],
typecast=list,
)
MFA_TRUST_ENABLED = True
MFA_PASSKEY_LOGIN_ENABLED = True
MFA_WEBAUTHN_ALLOW_INSECURE_ORIGIN = DEBUG
LOGOUT_REDIRECT_URL = get_setting(
'INVENTREE_LOGOUT_REDIRECT_URL', 'logout_redirect_url', 'index'