diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 3b92ef5..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,5 +0,0 @@ -[tool.pytest.ini_options] -pythonpath = [ - ".", - "st2auth_flat_file_backend" -] diff --git a/st2auth_flat_file_backend/__init__.py b/st2auth_flat_file_backend/__init__.py index b877468..10f0377 100644 --- a/st2auth_flat_file_backend/__init__.py +++ b/st2auth_flat_file_backend/__init__.py @@ -19,4 +19,4 @@ __all__ = ["FlatFileAuthenticationBackend"] -__version__ = "0.4.0" +__version__ = "0.4.1" diff --git a/st2auth_flat_file_backend/flat_file.py b/st2auth_flat_file_backend/flat_file.py index 539c904..e5ee13b 100644 --- a/st2auth_flat_file_backend/flat_file.py +++ b/st2auth_flat_file_backend/flat_file.py @@ -18,10 +18,11 @@ import bcrypt import base64 import hashlib -import apr1 import crypt # deprecated in 3.11 and removed in 3.13. from hmac import compare_digest as compare_hash +from . import apr1 + # Reference: https://httpd.apache.org/docs/2.4/misc/password_encryptions.html # https://akkadia.org/drepper/SHA-crypt.txt