Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Send http request with parameters "username" and "password" to http://yourServer/security/authenticate. For demo http://46.101.51.199:8080/oweb/security/authenticate?username=YOURUSER&password=YOURPW .

The response would be a json document with two objects mappable to "user" and "location" of org.opensrp.api.domain.User and org.opensrp.api.domain.Location respectively. The location is one the health worker is mapped to via OpenMRS person attribute "location". user represents complete user details like name, birthdate and other attributes associated, while location represents the area or health facility the worker is responsible for. This is mapped by OpenMRS person attribute location with mapped location uuid.