Skip to content

๐Ÿ”‘ 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-cronjob to expedite the update.

CronJob Sync

For immediate effect, run the export job to push changes to downstream systems.