feat(api): integrates drupal7 hash verifier from passwap (#10918)

# Which Problems Are Solved

- Integrates the Drupal 7 hash verifier from passwap

# Additional Changes

- The docs inform about the option to use the Drupal 7 hash verifier
- Updates passwap to version v0.10.0

# Additional Context

- Follow-up for PR
[#passwap/pull/70](https://github.com/zitadel/passwap/pull/70)

Co-authored-by: Marco A. <[email protected]>
This commit is contained in:
lennartzellmer
2025-10-28 16:26:48 +00:00
committed by GitHub
co-authored by Marco A.
parent 39a29f534a
commit f4503e07cd
3 changed files with 23 additions and 2 deletions
+14
View File
@@ -10,6 +10,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/zitadel/passwap/argon2"
"github.com/zitadel/passwap/bcrypt"
"github.com/zitadel/passwap/drupal7"
"github.com/zitadel/passwap/md5"
"github.com/zitadel/passwap/md5salted"
"github.com/zitadel/passwap/pbkdf2"
@@ -249,6 +250,19 @@ func TestPasswordHashConfig_PasswordHasher(t *testing.T) {
},
wantPrefixes: []string{bcrypt.Prefix, argon2.Prefix, md5.Prefix, scrypt.Prefix, scrypt.Prefix_Linux, md5salted.Prefix},
},
{
name: "drupal7 verifier",
fields: fields{
Hasher: HasherConfig{
Algorithm: HashNameBcrypt,
Params: map[string]any{
"cost": 3,
},
},
Verifiers: []HashName{HashNameDrupal7},
},
wantPrefixes: []string{bcrypt.Prefix, drupal7.Identifier},
},
{
name: "scrypt, error",
fields: fields{