Azure-Samples / azure-health-data-and-ai-samples

Samples for using the Azure Health Data Services
Other
50 stars 32 forks source link

Issue while testing Patient Standalone App - Full Access #105

Closed VirajKheni closed 1 year ago

VirajKheni commented 1 year ago

image

I'm following this doc: https://github.com/Azure-Samples/azure-health-data-services-samples/blob/main/samples/patientandpopulationservices-smartonfhir-oncg10/docs/deployment.md I've followed each steps. But while testing the Standalone App for Patient - I'm getting an error. I've uploaded a screenshot for the same.

I've cross-checked the settings for the roles and permissions. Adding another snapshot of the roles & permissions I've given to my app.

image

Find another snapshot of application administrator rights that has been given to my auth function application.

image

If anyone is familiar with this issue or know how to resolve it, I would greatly appreciate your assistance.

EXPEkesheth commented 1 year ago

Thanks for reporting the issue @VirajKheni . We will look into it and report back the findings.

VirajKheni commented 1 year ago

Thanks for your response @EXPEkesheth, I require your assistance to solve this issue. Your timely support in addressing this matter is highly valued.

sordahl-ga commented 1 year ago

@VirajKheni You should be authenticating using the dedicated standalone app that has smart scopes delegated from your smart-aad application that is detailed here:

https://github.com/Azure-Samples/azure-health-data-services-samples/blob/main/samples/patientandpopulationservices-smartonfhir-oncg10/docs/ad-apps/inferno-test-app-registration.md

Your registration should look something like this:

support

Use this applications client id and secret with the onc inferno test suite....for stand alone patient confidential client test.

VirajKheni commented 1 year ago

@sordahl-ga thanks for your input. I've already given all permission which is mentioned in doc. but still, the issue remains the same.

image

I am currently using this app's client ID and secret for the confidential patient client testing of the ONC Inferno test suite.

EXPEkesheth commented 1 year ago

@VirajKheni - we will try to repro the issue and report back the finding.

evachen96 commented 1 year ago

@VirajKheni - We weren't able to reproduce this issue, could you let us know the parameters that were sent to the /appConsentInfo endpoint? Also, are you setting up the correct authorization ie: sending the Authorization: Bearer tokenheader (with token being the access_token returned from the SMART on FHIR /token endpoint)?

VirajKheni commented 1 year ago

Thank you for your input @evachen96. this issue is resolved by redeploying the auth context frontend app and auth function backend app.

EXPEkesheth commented 1 year ago

Closing as issue is fixed