๐ Enabling Legacy User/Password Customers for the New Dashboardยถ
This guide explains how to manually update legacy customers (user/password-based) to work with the new OAuth2-enabled dashboard.
๐๏ธ Database & Collectionยถ
- Database:
dashboard-sia - Collection:
customers
๐ Update Scriptยถ
Use the following MongoDB command to update the customer record:
db.customers.updateOne(
{ customerId: "{{customerId}}" },
{
$set: {
username: "username",
password: "{{SHA3_256(password)}}",
apiAccess: true
}
}
)
Password Hashing
Replace {{SHA3_256(password)}} with the SHA3-256 hash of the user's password.
๐ Syncing Changesยถ
After updating the customer, either:
- Wait approximately 5 minutes for automatic sync, or
- Manually trigger the
export-customers-from-mongo-to-kafka-cronjobto expedite the update.
CronJob Sync
For immediate effect, run the export job to push changes to downstream systems.