Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1863

Darshan Hiranandani : Is There a Login API Endpoint for DHIS2 Authentication?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 1863

Trending Articles