FHIR Chat · C# Secured Fhir Client? · implementers

Stream: implementers

Topic: C# Secured Fhir Client?


view this post on Zulip Yunwei Wang (Mar 12 2016 at 16:24):

Does the current C# FhirClient implementation support secured https connection using token?

view this post on Zulip Ewout Kramer (Mar 14 2016 at 08:32):

Yes, you can use an https connection, and you'd need to hook onto the OnBeforeRequest to add the necessary headers. Or overload the corresponding virtual methods in a subclass of your own.

view this post on Zulip Brian Postlethwaite (Mar 15 2016 at 00:13):

Such as in this example:
FhirClient validationFhirClient = new FhirClient("https://docker-local.aws.cti/ontoserver/resources/fhir/");
validationFhirClient.OnBeforeRequest += (object sender, BeforeRequestEventArgs e) =>
{
e.RawRequest.Headers.Add("Authorization", "Basic bmN0c3VzZXIxOm5laHRhMTIz");
};
var vs = validationFhirClient.ExpandValueSet(new FhirUri("http://hl7.org/fhir/ValueSet/administrative-gender"));


Last updated: Apr 12 2022 at 19:14 UTC