smart-dev-sandbox icon indicating copy to clipboard operation
smart-dev-sandbox copied to clipboard

SMART Implementation

Open Plofstoffel opened this issue 6 years ago • 3 comments
trafficstars

Hi,

I have been playing around with the Dev-Sandbox and would like to confirm the following.

  • Where is the SMART implementation?
  • Is the Docker Image in this sandbox implementing an Interceptor as per the Hapi server documentation?

Sorry for creating an issue about this but I cannot get any SMART requests to work via Postman.

Plofstoffel avatar Jan 17 '19 11:01 Plofstoffel

This is a package of several projects linked together. HAPI is used as FHIR server only. The SMART authentication layer is handled by what we call the sandbox. It is basically a NodeJS proxy server, intercepting requests to handle the authentication and then sending them upstream to the HAPI servers.

Perhaps if you share your Postman experiments I might be able to help more...

vlad-ignatov avatar Jan 17 '19 20:01 vlad-ignatov

Hi,

Thank you for fixing this @vlad-ignatov

  • I found a couple of other places where the HOST variable must be added so this works everywhere:

For the Patient Browser to work, these files need to be updated:

  • The patient-browser section of the docker-compose.yml file (line ~59)
  • smart-dev-sandbox/patient-browser/dstu2-local.tpl (line 4)
  • smart-dev-sandbox/patient-browser/dstu3-local.tpl (line 4)

alekline avatar Jan 19 '19 18:01 alekline

That is correct. I had do some additional changes to support the HOST variable. Please update.

vlad-ignatov avatar Jan 21 '19 19:01 vlad-ignatov