medic / cht-user-management

GNU Affero General Public License v3.0
3 stars 1 forks source link

Use the new /api/v2/users endpoints in cht-core 4.7 #114

Open kennsippell opened 3 months ago

kennsippell commented 3 months ago

Issue https://github.com/medic/cht-core/issues/8877 with PR https://github.com/medic/cht-core/pull/8928 includes new /api/v2/users endpoints.

  1. Searching for a user by facility_id
  2. Looking up the details of a single username

The information in the users database is more secure (https://github.com/medic/cht-core/issues/8886), so updating to these endpoints is important.

Let's start with a quick prototype and give feedback to the core team, then actually support the new endpoints when working with a CHT endpoint that is >=4.7.

mrjones-plip commented 3 months ago

If it will help, I have deployed the latest 8877-lookup-single-user branch to EKS so there's a central, always online version to test against. If you need the login, it's medic and the password is in 1password under mrjones.dev.medicmobile.org.

Instance is at https://mrjones.dev.medicmobile.org/

You're welcome to use this for the coming few weeks, no problem. Push any config, delete any data, do anything you want! As well, I'm happy to reset it to a clean install if needed - lemme know!

Additionally, Docker Helper can run this branch as well. When prompted Do you want to run the latest CHT Core version (4.6.0) [Y/n]? choose 'n' and then select the number for the 8877-lookup-single-user branch (currently 91 but this will change over time)