2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-09 01:25:41 +00:00

MFA middleware tweaks (#10768)

* MFA middleware tweaks

- Remove Check2FAMiddleware if MFA not enabled
- Refactor into middleware.py

* Update settings.py

- Disable MFA_SUPPORTED_TYPES if MFA_ENABLED is False

* Update docs
This commit is contained in:
Oliver
2025-11-05 07:00:42 +11:00
committed by GitHub
parent 2bc2966d22
commit 7e943293c7
4 changed files with 92 additions and 92 deletions

View File

@@ -425,7 +425,7 @@ InvenTree provides allowance for additional sign-in options. The following optio
| Environment Variable | Configuration File | Description | Default |
| --- | --- | --- | --- |
| INVENTREE_MFA_ENABLED | mfa_enabled | Enable or disable multi-factor authentication support for the InvenTree server | True |
| INVENTREE_MFA_SUPPORTED_TYPES | mfa_supported_types | List of supported multi-factor authentication types | recovery_codes,totp |
| INVENTREE_MFA_SUPPORTED_TYPES | mfa_supported_types | List of supported multi-factor authentication types | recovery_codes,totp,webauthn |
### Single Sign On