Open sidharthramesh opened 2 years ago
Thanks @sidharthramesh we need to beef up our documentation here. The fhir-server-config.json
security section is more about advertising what security is enabled (e.g. for building the server's CapabilityStatement which is hosted from the /metadata endpoint).
One reason for this to be disconnected from the actual enforcement on the server is that often times we'll use a gateway in front of the server and so, for example, you might have OAuth enforced at that level but you still want the server to say its secured by OAuth.
To actually disable basic auth you can add the linked snippet under configDropins/overrides: https://github.com/LinuxForHealth/FHIR/issues/1020#issuecomment-1086238043
Describe the bug Setting
security.basic.enabled
to"false"
does not disable Basic AuthenticationEnvironment Which version of LinuxForHealth FHIR Server? Docker image
ghcr.io/linuxforhealth/fhir-server:5.0.0-rc2
To Reproduce Steps to reproduce the behavior: Use the following
fhir-server-config.json
Enabled http endpoint on port 8080 in server.xml
GET Request on
http://localhost:8080/fhir-server/api/v4/Patient
requires basic authentication. Failed with 401 without it.Expected behavior 200 OK
Additional context Add any other context about the problem here.