Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to authenticate FhirClient? #76
Let's say FHIR api got OAuth2 authentication on. Using OAuth2Client, I can receive authentication token. How could I use that token with FhirClient or is there another way to authenticate?
Btw, I can authenticate to HttpClient like this:
var client = new HttpClient();
The FhirClient has two events and two overridable methods that you can use to hook into the request/response cycle:
As you can see, these give you access to the underlying .NET webrequest/response objects so you can set the required headers and parameters.
Let me know if you need more than these hooks!