You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the code from my Bearer authorize unit test...
FhirClient validationFhirClient = new FhirClient("https://sqlonfhir-dstu2.azurewebsites.net/fhir/");
validationFhirClient.OnBeforeRequest += (object sender, BeforeRequestEventArgs e) =>
// Replace with a valid bearer token for this server
e.RawRequest.Headers.Add("Authorization", "Bearer XXXXXXX");
Then you can just use the API as normal.
There is no clean way of doing the SMART authentication steps, as these require a browser to do it, and depends on where you are running the client to be able to do it. I've been considering writing a couple of samples that do this in WPF