Question
· Oct 3, 2023

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)2
Log in or sign up to continue

Check this template https://github.com/intersystems-community/iris-fhir-template/blob/master...

// Configure FHIR Service instance to accept unauthenticated requests
 set strategy = ##class(HS.FHIRServer.API.InteractionsStrategy).GetStrategyForEndpoint(appKey)
 set config = strategy.GetServiceConfigData()
 set config.DebugMode = 4
 do strategy.SaveServiceConfigData(config)