icrc / openmrs-android-fhir

BSD 3-Clause "New" or "Revised" License
3 stars 9 forks source link

Add Basic Authentication support to OpenMRS backend server #64

Open icrc-fdeniger opened 2 months ago

icrc-fdeniger commented 2 months ago

Currently only OpenID Connect can be used to log into OpenMRS Backend preventing community users from testing the Android application on the OpenMRS Demo Server at https://dev3.openmrs.org/.

The login process needs to be updated to also allow basic authentication. A new property auth.method should be introduced to let implementers choose the authentication method.

This property will be added to the file local.properties.default for documentation purposes and then in the developer's local.properties file for testing these new options.

To enable the Android application to work with the OpenMRS Demo Server, the following properties should be configured:

auth.method=basic
fhir_base_url=https://dev3.openmrs.org/openmrs/ws/fhir2/R4/
openmrs_rest_url=https://dev3.openmrs.org/openmrs/ws/rest/v1/
check_server_url=https://dev3.openmrs.org/openmrs/ws/rest/v1/session

Acceptance criteria

Additional context