Hello,
We are trying to import/migrate Users from a DataBase to Auth0 using Enterprise Custom Database Connection.
We have also enabled Sync user profile attributes at each login
Options tried so far:
- We have written a custom login script that is run at each login as suggested in this community post
Issue 1. unable to set multifactor: [“guardian”]
- This property is not getting updated in User Profile - Raw Json, It is always set as empty multifactor: []
- Note: After enabling the logging - we can see the profile object being updated
Issue 2. Also tried setting ‘guardian_authenticators’. This property is also not updated in User Profile Section - Raw Json
- Note: After enabling the logging - we can see the profile object being updated
"guardian_authenticators": [
{
"id": "totp|dev_wwwhhw",
"type": "totp",
"confirmed": true,
"created_at": "2023-06-05T13:00:33.000Z",
"last_auth_at": "2023-06-05T13:02:47.000Z"
}
//{
// "type": "totp",
// "name": "OTP Application",
// "totp_secret": "BQBJCHSUSHDW"
// }
]
Issue 3. Tried setting mfa_factors, altough it is updated in User Profile Section - Raw Json, setting mfa_factors is not sufficient as user is never prompted to complete mfa.
- i.e. This property is not reflected on Multi-Factor Authentication Section on Users’ page
"mfa_factors": [
{
"totp": {
"secret": "BQBJCHSUSHDW"
}
}
]
Also attaching Database Action script for login in nodejs
custom-login.js.txt (2.6 KB)