question

OzairBajwa-6161 avatar image
0 Votes"
OzairBajwa-6161 asked MayankBargali-MSFT answered

Azure API for FHIR works for Postman but not for Mobile Application (401 token error)

I have setup Azure FHIR Api platform. I tested with Postman following the instructions at https://docs.microsoft.com/en-gb/azure/healthcare-apis/fhir/use-postman
and I was able to get it to work with the Access token.
I tried to run with my native app and I am getting a 401 unauthorized error. The error is thrown at the token response (token is invalid).

azure-api-fhir
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@OzairBajwa-6161 Please make sure your native app passes the value correctly so it generates the authorization token correctly as passed in the document that you were following.
Also please share the sample code how you are generating the token.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.