You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
In our application, we would like to disable 2FA for certain IP addresses (located in the corporate network). It seems to me that this is impossible with the current implementation of 2FA in flask-security.
It seems to me that it would require adding another setting (SECURITY_TWO_FACTOR_IP_WHITELIST?) and updating this condition:
flask_security/views.py:164
if cv("TWO_FACTOR"):
to check whether the IP address of the request is on the whitelist.
What do you think?
The text was updated successfully, but these errors were encountered:
In our application, we would like to disable 2FA for certain IP addresses (located in the corporate network). It seems to me that this is impossible with the current implementation of 2FA in flask-security.
It seems to me that it would require adding another setting (
SECURITY_TWO_FACTOR_IP_WHITELIST
?) and updating this condition:flask_security/views.py:164
to check whether the IP address of the request is on the whitelist.
What do you think?
The text was updated successfully, but these errors were encountered: