I am working on integrating my application with the SMART on FHIR Sandbox and noticed that the sim code in the aud parameter appears to remain consistent across sessions when using the same configurations in the SMART App Launcher. For example, when I use the Provider Standalone Launch type with no specific Patient(s) or Provider(s) selected, the same sim code is generated each time.
I have a few questions regarding this behavior:
- Is the sim code guaranteed to remain the same for identical configurations, or are there scenarios where it might change?
- Would you recommend dynamically extracting the sim code from the aud parameter in my app, or is it safe to use a hardcoded value for testing purposes?
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smart-on-fhir/3235e4a1-d986-4223-b6c4-9a073def9e73n%40googlegroups.com.
Dear SMART on FHIR Team,
I am currently working on integrating my application with the SMART on FHIR Sandbox and have encountered an issue when trying to generate an authorization code using the /authorize endpoint. i.e., https://launch.smarthealthit.org/v/r4/authorize
When I use the following authorization request:
https://launch.smarthealthit.org/v/r4/authorize?response_type=code&client_id=example&redirect_uri=http://localhost:5000/auth&scope=patient/Encounter.read patient/Observation.read user/. launch/patient launch/encounter openid fhirUser profile offline_access&aud=https://launch.smarthealthit.org/v/r4/fhir&state=123
I receive a "Not Found" error, even though I use the encoded one. It is not being redirected to the authentication page.
Additionally, when I use the /authorize-app endpoint with the sim code, the authorization workflow works correctly:
I would appreciate any guidance on resolving this issue, as we are preparing for deployment in the coming days.
Looking forward to your response.
Thank you,
Best regards,
Purushothaman B