Hello,
I am currently using Keycloak 26.2.3 with argon2 password encryption. The parameters are:
{
"hash_iterations": 5,
"algorithm": "argon2",
"additionalParameters": {
"hashLength": ["32"],
"memory": ["7168"],
"type": ["id"],
"version": ["1.3"],
"parallelism": ["1"]
}
}
How can I specify the password in the import with custom_password_hash? All combinations do not work.
Working through all the existing documentation snippets, my approach would be to transform this example
{
"value": "SOMEHASHWITHTRAILING=",
"salt": "SOMESALTWITHTRAILING==",
"additionalParameters": {}
}
to this custom_password_hash
"custom_password_hash": {
"algorithm": "argon2",
"hash": {
"value": "$argon2id$v=19$m=7168,t=5,p=1$SOMESALTWITHOUTTRAILING$SOMEHASHWITHOUTTRAILING"
}
}
I can import the users this way, but I always get the error:
"error": {
"message": "Password change required.",
"reason": "Verification failed for the provided custom_password_hash: {'algorithm':'argon2','hash':{'value':'$argon2id$v=19$m=7168,t=...'},'salt':{'value':''}}"
}
What am I doing wrong? Thanks for the help in advance