Hi everyone,
I’m Darshan Hiranandani, working on integrating user authentication with a DHIS2 instance and wanted to know if there is an API endpoint that allows me to log in by posting a username and password.
Specifically, I’m looking for a solution where I can send a POST request with the user credentials (e.g., username
and password
) and have the system authenticate the user.
For example, I am thinking of something like this in JavaScript with Axios:
const response = await axios.post(‘https://your-dhis2-instance/api/login’, { username, password });
Is there a login API available for DHIS2, or is there another recommended approach for this?
Looking forward to your insights!
Thanks!
Regards
Darshan Hiranandani
1 post - 1 participant