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
The Smart on Fhir protocol requires http fhir messages to be sent with an http header["Authorization"] value that is returned from the smart on fhir server during oauth2 initialization.
There is no way that I can see to add the authorization token to the fhir client so that it is sent with the http request, and hence no way that I can see to use the fhir client with smart on fhir.
The text was updated successfully, but these errors were encountered:
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
The Smart on Fhir protocol requires http fhir messages to be sent with an http header["Authorization"] value that is returned from the smart on fhir server during oauth2 initialization.
There is no way that I can see to add the authorization token to the fhir client so that it is sent with the http request, and hence no way that I can see to use the fhir client with smart on fhir.
The text was updated successfully, but these errors were encountered: