HS.FHIRServer.Installer - allow anonymous
Hi,
How could I configure a FHIR server instance programmatically to allow unauthenticated access? This article explains how to set the Debug mode option value, but the HS.FHIRServer.API.ConfigData class does not contain a field which disables basic authentication for the endpoint.
Product version: IRIS 2023.2
Discussion (3)0
Comments
Check this template https://github.com/intersystems-community/iris-fhir-template/blob/maste…
// Configure FHIR Service instance to accept unauthenticated requestsset strategy = ##class(HS.FHIRServer.API.InteractionsStrategy).GetStrategyForEndpoint(appKey)
set config = strategy.GetServiceConfigData()
set config.DebugMode = 4do strategy.SaveServiceConfigData(config)
Thanks so much! It was not obvious for me that the DebugMode property value is of type integer (looks like boolean)
See relevant values from the docs here:
https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP…