microsoft / fhir-proxy

FHIR Proxy is a secure application that acts as an intermediary in the transfer of FHIR data to and from Azure API for FHIR/FHIR Server for Azure
MIT License
73 stars 50 forks source link

Authentication Failed - When Calling FHIR Service Through Installed FHIR Proxy - Using v2.0 branch #96

Closed conkman closed 1 year ago

conkman commented 1 year ago

Describe the Issue Currently I am working on a project to get G10 Certified. We have installed the custom FHIR Proxy via the steps described on the docos on the v2.0 branch. When I attempt to make a GET call to the FHIR Proxy which should then proxy the call to the FHIR Service I am consistenly getting a 401 Authentication Failed.

GET https://sfp-proxy1758.azurewebsites.net/fhir/Patient/687cc08f-d2a1-2898-045c-87e8bc277c39 image

I am using the Inferno testing tool to make the call and to obtain the token. Looking at the token I see the necessary scopes in my scope claim. But the call fails.

Steps to reproduce

  1. Setup FHIR Service
  2. Setup FHIR Proxy via docs.
  3. Get token via authorization_code flow.
  4. Call endpoint using proxy url GET https://sfp-proxy1758.azurewebsites.net/fhir/Patient/687cc08f-d2a1-2898-045c-87e8bc277c39
  5. Get Response: { "resourceType": "OperationOutcome", "id": "60678050f55c2faf3891cc8ac7b020ae", "issue": [ { "severity": "error", "code": "login", "diagnostics": "Authentication failed." } ] }
conkman commented 1 year ago

I am still running into this issue. Also when I try to use the generated postman json and environments I get a Object Reference error when running the AuthorizedGetToken call.

image

sordahl-ga commented 1 year ago

This is due to configuration and will be closed to archive the repo.