Authenticate to Azure FHIR API (azurehealthcareapis) #2698
Replies: 2 comments
-
There's a chat discussion that covers this waaay back. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is some documentation how to add a custom MessageHandler to the FHIR Client. Here: https://docs.fire.ly/projects/Firely-NET-SDK/en/latest/client/request-response.html In the example a basic AuthenticationHandler is used. Hope that helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, Im using Health Data Services, I need to create the FhirClient calling the Azure FHIR server
var _fhirServer = 'https://myserver.fhir.azurehealthcareapis.com'
var fhirClient = new FhirClient(_fhirServer)
var resourceUrl = $"Patient/{Id}";
var patient = fhirClient.Read(resourceUrl); // Response: 401 Unauthenticated
I have been playing with the constructor to see if there is any way to pass the bearer token in the call to be able to authenticate successfully
Any help will be great, Thanks!
Beta Was this translation helpful? Give feedback.
All reactions