[Question] Unauthorized Error Posting Binary
sunitakodali opened this issue · 3 comments
Hello There,
Trying to post Patient/Practitioner/Binary postman examples. I am getting error as Unauthorized.
Thank you.
Hi @sunitakodali,
Thanks for reaching out!
Are you getting the same Unauthorized error posting to other FWoA endpoints as well? Or is the binary endpoint the only you're having trouble with?
Meanwhile, could you please share more details on the POST request you sent?
Thanks,
Yanyu
Hello Yanyu,
I am getting the same error message on all other endpoints as well. The only request that worked was, Get Metadata (since it didn't required API_KEY). I am providing all the required information like Cognito_Key, API_Key and API_URL. For the Cognito Key, I am providing ID_Token instead of Access Token. I tried both too but getting the same error: "Unauthorized". For ID_token, getting error message in FHIR message format, and for Access Token, just Json format.
Thank you,
Sunita
Hi Sunita,
Thanks for the information!
Are you using the provided PostMan collection and environment files? There are some mismatches in names and upper/lower cases in the parameter names you provided. Meanwhile, the Cognito token should be a plain string instead of a Json.
Thanks,
Yanyu