Skip to content

Commit b6880a0

Browse files
authored
📦 release: v3.8.0
* feat: add pluggable password validation * i18n: pulled translations * fix: pin bcrypt for failing tests
1 parent 0446413 commit b6880a0

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CHANGES

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ Flask-Security-Invenio Changelog
44
Here you can see the full list of changes between each Flask-Security-Invenio
55
release.
66

7+
Version 3.8.0
8+
-------------
9+
10+
Released October 17th 2025
11+
12+
- feat: add pluggable password validation
13+
- i18n: pulled translations
14+
- fix: pin bcrypt<5.0.0 due to incompatibility with passlib. bcrypt 5.0.0+
15+
enforces 72-byte password limit before hashing, breaking passlib's bcrypt
16+
backend initialization which tests with 255-byte passwords.
17+
718
Version 3.7.0
819
-------------
920

flask_security/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
url_for_security,
5959
)
6060

61-
__version__ = "3.7.0"
61+
__version__ = "3.8.0"
6262
__all__ = (
6363
"AnonymousUser",
6464
"auth_required",

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ install_requires =
3333

3434
[options.extras_require]
3535
tests =
36+
# bcrypt 5.0.0+ introduced stricter validation that requires passwords to be
37+
# <= 72 bytes before hashing. This breaks passlib's bcrypt backend initialization
38+
# which tests compatibility by attempting to verify a 255-byte password.
39+
# Error: "ValueError: password cannot be longer than 72 bytes, truncate manually"
40+
# See: https://github.com/pyca/bcrypt/blob/main/CHANGELOG.rst (5.0.0 release notes)
41+
# Passlib needs to be updated to handle this, or we need to migrate away from passlib.
3642
bcrypt>=3.1.0,<5.0.0
3743
check-manifest>=0.42
3844
coverage>=5.3,<6

0 commit comments

Comments
 (0)