1. How to check raw text is match with hashed password in custom endpoint script of forgerock-idm
Posted yesterday
I’ve create a custom endpoint for change userPassword via idm. with data:
{
"userId": "d263d111-68ad-5f8c-5ced-53c91a3af74e",
"currentPassword": "Admin@111",
"newPassword": "Admin@111"
}
Idea is if currentPassword input is match with hash password => patch password of managedUser.
Current password schemas is: PBKDF2-HMAC-SHA256
Hashed password in DS is: {PBKDF2-HMAC-SHA256}10:fZ+HYYqutbG+j88FfrTpLBV8xr1xOzpwZPcNKcSOZcPJkMkUgilN3wWzEc7yqjNz.
Raw text is Admin@111.
My question is does openidm support checking one way hashing password? and how can i perform it? thanks