Default INITIAL_NO_AUTH_ACTION_COUNT should be infinity.

This commit is contained in:
acsbendi 2019-07-11 13:58:57 +02:00
parent bec0c5a273
commit 59f091bdea

View File

@ -108,7 +108,7 @@ class _TemplateEnvironmentMixin(object):
class ActionAuthenticatorMixin(object):
INITIAL_NO_AUTH_ACTION_COUNT = int(os.environ.get("INITIAL_NO_AUTH_ACTION_COUNT", 999999999))
INITIAL_NO_AUTH_ACTION_COUNT = float(os.environ.get("INITIAL_NO_AUTH_ACTION_COUNT", float("inf")))
request_count = 0
def _authenticate_action(self, iam_request_cls):