opensrp / hapi-fhir-jpaserver-starter

Apache License 2.0
0 stars 1 forks source link

Provide Authentication support in test page overlay #3

Open rehammuzzamil opened 3 years ago

rehammuzzamil commented 3 years ago

Fix broken web UI (Test page overlay) by providing Authentication support. image

Cause of broken UI Due to the Keycloak Security Configuration brought into the JPA Server code, API redirects it to the default login page of the Keycloak as per the default behavior that response is in the html/text format. But as per the CapabilityStatement.class, the mentioned content type is not supported by the API content type. This breaks while fetching and loading the Conformance Statement that has all the set of rules to which the FHIR Application is compliant. It throws away NonFHIRResponseException at https://github.com/opensrp/hapi-fhir/blob/38436e5c1bd04e7a4ca81f078eb18ddabc2bd533/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/BaseClient.java#L576

Possible Solution

Challenges/Open questions

cc: @f-odhiambo @dubdabasoduba

rehammuzzamil commented 3 years ago

A quick update regarding initial RnD:

Based on initial high-level RnD Pros:

Cons:

I will proceed with the in-depth RnD and share further details here. Please feel free to share your thoughts and comments on which approach should be used for further investigation. @dubdabasoduba cc : @f-odhiambo @maimoonak