I’m using this endpoint /api/v2/jobs/users-imports (Create import users job) for importing users and below is Json file.
After API call, users are created successfully but for some reason, I cannot log in to Auth0 universal login.
Original password is ‘migration1’.
2 to 3 weeks ago it worked using the salt for bcrypt and could log in to Auth0 but now I checked that bcrypt doesn’t allow salt property via manual. Allowing salt property for bcrypt has changed recently ? and if so then what should I do to provide salt for bcrypt. Currently just calling below API without salt does not allow to log in.
@@@@ user created but login fails : Username or Password incorrect error
[
{
"user_id": "381",
"app_metadata": {
"type": "object",
"description": "Migrated data from ABC"
},
"username": "mike.migration",
"user_metadata": {
"username": "mike.migration",
"email": "mike+migration@abc.com.au",
"given_name": "Michael Jackson",
"family_name": "Jackson",
"description": "User Michael Jackson is migrated from ABC"
},
"email": "mike+migration@abc.com.au",
"given_name": "Michae Jackson",
"custom_password_hash": {
"algorithm": "bcrypt",
"hash": {
"value": "$2a$10$bWMkmi.x9wjzkKSGmWC/FeBpmPFkCJlsJuwfuOLSD4g2jioNi.zu."
},
}
},
{
"user_id": "382",
"app_metadata": {
"type": "object",
"description": "Migrated data from ABC"
},
"username": "chris.migration",
"user_metadata": {
"username": "chris.migration",
"email": "chris+migration@abc.com.au",
"given_name": "Chris Migration",
"family_name": "Migration",
"description": "User Chris Migration is migrated from ABC"
},
"email": "chris+migration@abc.com.au",
"given_name": "Chris Migration",
"custom_password_hash": {
"algorithm": "bcrypt",
"hash": {
"value": "$2a$10$Vawe/n0.iRr95GK2zSL3Be3Mt0ukNtn985lp3Fih4eRUd9CYee6gO"
},
}
}
]
@@@@ “message”:“Additional properties not allowed: salt”
But it worked 3 weeks ago as far as I remember.
Json format is not the problem. moving one level up salt throws the same error.
[
{
"user_id": "381",
"app_metadata": {
"type": "object",
"description": "Migrated data from ABC"
},
"username": "mike.migration",
"user_metadata": {
"username": "mike.migration",
"email": "mike+migration@abc.com.au",
"given_name": "Michael Jackson",
"family_name": "Jackson",
"description": "User Michael Jackson is migrated from ABC"
},
"email": "simone+migration@farmbot.com.au",
"given_name": "Simone Barakat",
"custom_password_hash": {
"algorithm": "bcrypt",
"hash": {
"value": "$2a$10$bWMkmi.x9wjzkKSGmWC/FeBpmPFkCJlsJuwfuOLSD4g2jioNi.zu.",
"salt": "TYGHRHFhy+9mLXlPoeyxAOo+P4k="
}
}
},
{
"user_id": "382",
"app_metadata": {
"type": "object",
"description": "Migrated data from ABC"
},
"username": "chris.migration",
"user_metadata": {
"username": "chris.migration",
"email": "chris+migration@abc.com.au",
"given_name": "Chris Migration",
"family_name": "Migration",
"description": "User Chris Migration is migrated from ABC"
},
"email": "chris+migration@abc.com.au",
"given_name": "Chris Migration",
"custom_password_hash": {
"algorithm": "bcrypt",
"hash": {
"value": "$2a$10$Vawe/n0.iRr95GK2zSL3Be3Mt0ukNtn985lp3Fih4eRUd9CYee6gO",
"salt": "jxIvZQUXSGNOvH0TXUjYxHGlOx4="
}
}
}
]