-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App launch Failed to discover authorization URL given #4
Comments
@nschwertner @jmandel hi guys do you know what the issue is here why the launch is failing? |
It seems that your launchURI is not getting any of the necessary URL parameters. Can you describe how you "launch" it? |
@vlad-ignatov i git cloned the app into visual studio code and then did npm install and npm run serve as suggested in docs then i opened the launch page where i see this error. |
OK, that makes sense. To launch a SMART app you cannot just open the launch page in browser. Instead you need to know the URL of that page (say http://localhost/launch.html). That is your launch URI that you should use to launch the app from external system (like an EHR). The simplest way to try that is to go to http://launch.smarthealthit.org, paste that URL in the "App Launch URL" field at the bottom and click "Launch App". You can also pre-select a Patient and Practitioner, or you can skip that and let the app ask you for whatever it needs. |
@vlad-ignatov sorry i should have been more specific when i said i open the launch page i meant when i did npm run serve i got the following localhost and i did the launch http://127.0.0.1:8000/launch |
It is a static HTML app so I believe your launch url might be http://127.0.0.1:8000/launch.html instead of http://127.0.0.1:8000/launch. Does that work? |
with remobing .html extension and only using http://127.0.0.1:8000/launch error becomes refuse to connect. |
OK, here are couple of things I'd like to ask you to do. These can help us understand what is happening:
|
OK, so I can't be sure what your issue is, but I installed the app to try it and I found some problems. Apparently, it has not been updated for a while and I will have to do that now... Meanwhile, I think should still be launch-able against DSTU-2. In your case, you should be able to open this link and click "Launch App". I will let you know when the update is complete. |
The update should be complete now. The app is now using the latest Note that this app is designed for DSTU-2 only. For newer FHIR versions there is http://apps.smarthealthit.org/app/bp-centiles-v2 |
@vlad-ignatov Thanks for fixing this i can confirm that this works against DSTU2 smart health api, there is no source code available for R3 version of the app, where can i get the code? http://apps.smarthealthit.org/app/bp-centiles-v2 |
I think v2 is not an open source but I'm not 100% sure. @nschwertner is the best person to answer that. |
@vlad-ignatov i am trying to launch this app against smart health open fhir server but the app fails with the error " Failed to discover authorization URL given"
The text was updated successfully, but these errors were encountered: