Open githengi opened 5 years ago
The password in the settings table is currently only used for authentication requests with the OpenSRP server. This will no longer be needed once Oauth is enabled on the client side by https://github.com/OpenSRP/opensrp-client-core/issues/452 issue
It therefore seems better to remove it
org.smartregister.repository.AllSettings#fetchANMPassword
will be removed and anmPassword
in the settings table will no longer be availableHowever, the following repositories that use the password for other server requests will be affected. Below are the repositories
opensp-client-sid
opensrp-client-bangladesh
opensrp-client-facial-recognition
Use of the following endpoints will be affected due to the client-core changes:
module/idgen/exportIdentifiers.form
OpenMRS endpointlogin/auth
endpoint while using username:password@url/login/auth
aThis issue is currently blocked by https://github.com/OpenSRP/opensrp-client-core/issues/452
Next steps:
Encrypt with a salt the password stored on the settings table