How SMART App Launch 2.0 works on Medplum
Medplum is an open source implementation of SMART App Launch 2.0.0, so a SMART on FHIR app can start from Medplum or be launched from Medplum-backed data. The ClientApplication resource is the central object: it carries the JWKS URI, the redirect URI and the launch URI. A health system or software team planning this work should treat those three values as the first configuration decisions, because each one must match what the app registers and what the launching system expects. Confirm the exact field names and accepted formats against the Medplum SMART App Launch documentation before you build the client registration.
The launchUri is where Medplum redirects the user to start the authentication handshake. In practice, the launch URI is the entry point that the launching context calls, and it determines which app the user lands in after sign-in. The redirectUri receives the authorization response once the user has signed in and consented, and the jwksUri publishes the keys the app uses to sign its client authentication. Each of these endpoints is reachable only if the app's hosting, DNS and TLS are in place, so teams should plan those components alongside the registration rather than after it. Ask the Medplum team which endpoints must be publicly reachable and which can stay on a private network in your deployment.
The Medplum guide uses Inferno, the testing tool for SMART App Launch, as its example client. That makes Inferno a practical first check: run the launch flow against a test client before connecting a real application or a second EHR. Use the results to confirm the redirect behavior, the launch sequence and the scope handling, then repeat the run after any change to the ClientApplication settings. Do not assume compatibility with other EHR products beyond what the Medplum documentation states. If an external EHR must launch a Medplum-backed app, confirm that EHR's own SMART configuration and supported scopes with its vendor and its implementation team.
What a SMART app launch needs before configuration
A SMART App Launch 2.0 setup depends on a few pieces being in place before anyone edits a ClientApplication. Each card below covers one prerequisite, and together they define what the team must own on the Medplum side and what it must obtain from the launching EHR or sandbox.
A running Medplum project or server
Confirm whether you are launching against Medplum Cloud or a self-hosted server, because the second option means your team owns the upgrade path. Self-hosted Medplum must run a supported version, and the team should confirm current version details on the Medplum releases page rather than assume them. Have an admin account on the project that will hold the ClientApplication, and check that the project is the one the launching system will reach.
Medplum releasesA registered ClientApplication
The app's identity lives in a ClientApplication resource that carries the JWKS URI, redirect URI and launch URI. Decide before registration which app owns the record, who can edit it, and how it is named across dev, test and production projects. The launch URI is where Medplum sends the user to start the authentication handshake, so it must match the app's actual entry point.
SMART App Launch docsA publicly reachable redirect URI
The redirect URI must be an address the user's browser can reach after authentication, and it must match the value registered on the ClientApplication exactly. Plan separate redirect URIs for each environment rather than reusing one across them. Test that the host resolves, serves valid TLS, and does not sit behind a rule that blocks the authorization response.
A reachable JWKS endpoint
The JWKS URI publishes the public keys that verify the app's signed authentication assertions. Confirm the endpoint is publicly reachable over HTTPS, returns a valid key set, and is updated when keys rotate. Record who owns key rotation, because an expired or mismatched key causes launches to fail without an obvious error in the user interface.
Scopes the app will request
List the SMART scopes the app needs before configuration, such as patient or user access to specific resource types and read or write permissions. Requesting broader scopes than the workflow needs complicates the launching EHR's review and your own access policy design. Confirm with the clinical owner which data the app may read and write, and how that maps to the access policies on the Medplum project.
Access to the launching system's configuration
Whether the launching system is an EHR or a sandbox, you need someone who can register the app there and confirm the client identifier, launch context and endpoint details. Ask the EHR or sandbox owner for their registration process, required lead time and test accounts before setting dates. Without this access, Medplum configuration can be correct while the launch still fails at the other end.
Configuring the ClientApplication in sequence
This sequence turns a planned SMART app into a registered Medplum ClientApplication with a working redirect, a published key set, a launch entry point and the scopes the app needs, each confirmed before the next step. Finishing it gives you a client ready for an Inferno test run.
Create the ClientApplication record
Create a ClientApplication in the Medplum project that will own the app, giving it a name your team will recognize in audit records. Your team does this in the Medplum admin interface or through the API, using the field names in the Medplum SMART App Launch guide. Done means the ClientApplication exists, has an ID, and is visible to the administrators who will maintain it.
Set the redirect URI
Enter the callback URL where your app receives the authorization code after the user signs in. Your application team supplies this value and the platform team confirms it is an HTTPS address they control. Check that the URL resolves in a browser and returns the app's callback page, so that a mismatch does not surface later as a failed sign-in.
Publish the JWKS URI
Set the JWKS URI so Medplum can fetch the public keys that verify your app's signed assertions. The app team hosts this endpoint and must keep the key set current when they rotate keys. Check that the JWKS document returns a JSON key set containing the keys you expect, with the key IDs your app will use when it signs requests.
Set the launch URI
Set the launch URI to the address where Medplum sends the user to start the authentication handshake for your app. The guide describes this field as the starting point of the launch flow, so confirm its exact role in the version you run. Check it by opening the launch URI from a test session and confirming that the browser is redirected into the handshake rather than to an error page.
Request the scopes the app needs
List only the SMART scopes the app needs for its workflows, such as read access to specific resource types, and confirm each one against the scopes Medplum supports in the SMART App Launch guide. Access policies in the project still limit what each user can see, so align scope requests with those policies. Check the granted scopes in the token response from a test launch and compare them against the list the app team approved.
Start an Inferno test run
Run the app through Inferno, the testing tool for SMART App Launch, which Medplum's guide uses as its example client. Your team configures Inferno to use the ClientApplication's redirect, launch and scope values, then starts the suite. Inferno reports which checks pass and which fail, so review each failure against the field values set in the earlier steps before changing anything.
Confirm the handshake end to end
After Inferno results are clean for the launch path, run one manual launch with a real test user in a non-production project and confirm the app receives context and data it is allowed to see. Record the ClientApplication settings and the test results so a reviewer can trace the configuration. The sequence is complete when the app launches, returns scoped data and the evidence is filed with the project.
Launching from Medplum versus launching into Medplum
A SMART launch can run in two directions, and the registration work differs in each. In the first, a SMART app is started from Medplum's context, so Medplum is the system that initiates the launch and the app is the party that must accept it. In the second, a Medplum-backed app is started from another EHR, so the other EHR is the launching system and Medplum holds the app's ClientApplication record. Before any settings are changed, the team should write down which direction each app will use, because the same app can need different registrations depending on where the user starts.
Medplum owns the ClientApplication for any app registered in its own project. The settings that carry the most weight are the launchUri, which is where Medplum redirects the user to begin the authentication handshake, along with the redirect URI and the JWKS URI that publishes the app's keys. In a launch from another EHR, the other EHR's administrators typically register the app in their system, so the team must confirm which URIs, keys and scopes that system will accept, and who rotates the keys later. Confirm the exact registration fields, format and approval steps with each launching system's vendor, since these vary by product and are not set by Medplum.
Before go-live, agree in writing with the other EHR's administrators on the launch URL, the redirect URI, the public key source, the scopes the app may request and the test patient or context data used during verification. Also agree who approves changes to any of these and how a broken registration will be reported and fixed. Medplum's SMART App Launch guide uses Inferno as its example client, so teams can use that tool to check the handshake from both ends. The Medplum SMART App Launch documentation is the natural next read for the field-level setup.
How the launch handshake moves between app, Medplum and the EHR
The launch starts in the EHR or in Medplum, which sends the user to the app's launch URI. The app then redirects the browser to Medplum's authorization endpoint. Medplum returns an authorization code to the app's redirect URI, and the app's backend exchanges that code for a token. Check at each hand-off that the redirect URI matches the ClientApplication exactly, and that Medplum can fetch the app's keys from the JWKS URI to validate the client's signed assertion.
Launch and token exchange between the user's browser, the app backend, the EHR and Medplum.
ClientApplication fields and what each one controls
This table maps each ClientApplication setting used in a SMART App Launch 2.0 flow to the role it plays, who supplies the value, and what fails if it is wrong. Read it as a checklist during registration and again when a launch fails, since most launch errors trace back to one of these four settings.
| Setting | What it controls | Who supplies it | What breaks if it is wrong |
|---|---|---|---|
| JWKS URI | Where the authorization server fetches the app's public keys to verify signed client assertions during token requests | The app developer hosts the key set; the Medplum project admin registers its URL on the ClientApplication | Token requests fail verification, so the app cannot exchange the authorization code for an access token |
| Redirect URI | The address Medplum sends the authorization response to, carrying the code and state back to the app | The app developer defines the callback route; the admin must register the exact value | Medplum rejects the authorization response, or the user lands on an error page instead of the app |
| Launch URI | The app endpoint Medplum redirects the user to in order to start the SMART authentication handshake | The app developer supplies the route that accepts the launch request; the admin enters it on the ClientApplication | The launch never starts from Medplum, so users see no entry point into the app from the Medplum side |
| Requested scopes | The SMART and FHIR scopes the app asks for, which set the resource types and operations it can read or write | The app developer declares scopes in its launch request; the admin decides which scopes the client may receive | Requests for out-of-scope data return authorization errors, or the app shows empty views where data was expected |
| Client ID | Identifies the registered ClientApplication in every authorization and token request | Generated by Medplum when the ClientApplication is created; the app developer configures it | Requests from the app are rejected as an unknown client, and the handshake stops before sign-in |
| Launch context (patient or encounter) | Whether the app receives patient or encounter context after launch, depending on how the launch was started | Set by the launching system (Medplum or the other EHR) and by the scopes requested | The app opens without a patient, or shows the wrong patient if context is passed from a different launch |
Choosing SMART scopes for each app
Scopes tell Medplum what a SMART app asks for at launch, and the Medplum project still decides whether each request is granted. The cards below cover the decisions that connect requested scopes, access policies, patient context and consent, and the checks to run before design sign-off.
Start from minimum data
Each scope should follow the minimum data each app needs to complete its task. List every resource type and operation the app reads or writes, then request only those. A medication reconciliation app, for example (illustrative), rarely needs demographic fields it never displays. Broad scopes expand what a stolen token can reach, and they also widen what your security and privacy reviewers must justify. Write the list down before the client registration is created so reviewers can compare it with what the app actually requests.
Patient-level or user-level access
Patient-level scopes limit an app to the patient in the launch context, which suits apps opened from a chart. User-level scopes let the app read anything the signed-in user can access across patients, which suits worklists and population tools. Choose one model per app and state it in the design record. A user-level request from an app built for a single chart is hard to justify in a regulated review, and a patient-level app may fail once it needs data from a second patient. Confirm how the launch context is passed in the Medplum flow before you draft the scope list.
Match scopes to access policies
A scope is a request, and the Medplum project decides whether it is granted. Access policies configured in the project determine which resource types, compartments and operations a user or client can reach. Check each requested scope against those policies, including the client's own access policy, before the app goes live. A scope that asks for write access to a resource type while the policy allows only read will produce failures that look like app bugs. Keep one table that maps each scope to the policy behind it, and review it whenever either side changes.
Consent and access control
Scope approval does not override consent or record-level access control. Data a patient has restricted, or records outside a user's access policy, stay hidden even when the scope is approved. Test this with at least one patient who has a restricted record and one user who lacks rights to it. Ask your compliance team which consent model applies to each data type, especially sensitive categories, and document which controls Medplum enforces and which your application must enforce. Confirm the split in writing, since Medplum's compliance documentation describes compliance as a shared responsibility.
Separate read and write scopes
Read and write permissions carry different risk and should be requested separately. An app that only displays results needs read access, while one that files notes, orders or messages needs write access that clinical governance may want reviewed. Ask for write scopes only in the workflows that need them, and confirm that the audit trail records which user or client made each change. Some apps request write scopes during onboarding out of habit. Remove those requests during design review, and verify the audit behavior with your Medplum deployment team before testing begins.
Confirm the supported scope list
Do not assume a scope works because the SMART specification defines it. The Medplum SMART App Launch guide lists the scopes its implementation accepts and uses Inferno as its example client. Before design sign-off, check that every scope your app requests appears in that list, record the Medplum version you verified against, and rerun the Inferno tests after any scope change. Ask the Medplum team to confirm any scope that appears in a vendor example but not in the docs. Scope mismatches found late are costly because they change client registration, access policies and test scripts together.
Medplum SMART docsLaunch failures and where to look first
This table pairs each common SMART App Launch failure on Medplum with its likely cause, a first check and the fix. Work through the rows in order, because redirect, key and launch configuration faults usually block the handshake before any token or scope problem appears.
| Failure | Likely cause | Check | Fix |
|---|---|---|---|
| Redirect URI mismatch | The redirect URI sent by the app does not exactly match the redirect URI stored on the ClientApplication, including scheme, host, port, path and trailing slash. | Compare the redirect_uri in the authorization request with the redirect URI on the ClientApplication record, character by character. | Update the ClientApplication redirect URI or the app configuration so both values match exactly, then retest the handshake. |
| JWKS not reachable | The JWKS URI on the ClientApplication points to a host the Medplum server cannot reach, or the endpoint returns an error or non-JSON response. | Request the JWKS URI from the Medplum server network and confirm it returns a JSON key set over HTTPS. | Correct the JWKS URI, open the network path from the server to the key host, and confirm the endpoint is publicly reachable if your setup requires it. |
| JWKS returns wrong keys | The key set published at the JWKS URI does not include the signing key the client uses, often after a key rotation or when the wrong file is served. | Inspect the key IDs (kid) in the JWKS response and compare them with the kid in the client's signed assertion. | Publish the current public key set at the JWKS URI, remove retired keys only after clients have switched, and retest token requests. |
| Launch URI points to the wrong path | The launchUri on the ClientApplication does not lead to the page where the app begins the authentication handshake, so the user lands on an error or an unrelated page. | Open the launchUri in a browser and confirm it starts the SMART launch flow for your app, not a static or login-only page. | Set the launchUri to the app's launch endpoint. Medplum redirects the user there to begin the handshake, so this value must match the app's routing. |
| Missing scopes cause empty data | The app requests scopes that do not cover the resource types it reads, or the granted scopes are narrower than the app's screens expect, so the app loads with no records. | Compare the scope parameter in the token request with the resource types the app queries, and check the granted scope in the token response. | Request the scopes the app needs, such as patient or user resource scopes, and align the app's queries with what was granted. Confirm the exact scope syntax against the Medplum SMART App Launch docs. |
| Inferno tests fail on the token response | The token response is missing required fields, returns an unexpected scope or token type, or the client authentication step does not match what the test expects. | Read the failing Inferno test name and inspect the raw token response and the request that produced it. | Adjust the client configuration or the app's token handling to meet the failing requirement, then rerun the full Inferno suite from the start. |
| Inferno fails on redirect or launch steps | Inferno's redirect or launch URLs do not match the ClientApplication settings, so the test flow never reaches the token exchange. | Confirm the redirect and launch values Inferno uses are the ones saved on the ClientApplication. | Update the ClientApplication settings to match the test configuration, then start a new test session. |
Testing the launch with Inferno before go-live
Inferno is the testing tool for SMART App Launch, and Medplum's SMART App Launch guide uses it as the example client, so it is the natural first check for a Medplum ClientApplication before any clinician sees the app. Run the app through Inferno's SMART App Launch test kit against your Medplum server, using the same ClientApplication values you plan to ship: the redirect URI, the JWKS URI and the launch URI that Medplum uses to start the authentication handshake. Work through each test in order, and when a test fails, check the ClientApplication settings and the requested scopes before changing the app code. Record the Inferno version, the Medplum version and the exact scopes in the run, so the result can be reproduced after an upgrade.
A passing run shows that your app and your Medplum configuration complete the SMART App Launch 2.0 handshake as the test suite defines it: discovery, authorization, token exchange and the expected handling of launch context and scopes. It does not prove that the EHR you will launch from behaves the same way. Inferno tests the protocol against a reference flow, not the receiving EHR's sandbox, its scope grants, its patient-matching rules or its clinical workflow. It also does not prove that clinicians can complete their tasks safely, that data is shown correctly for the encounter, or that access rules in Medplum limit what the app can read. Treat a pass as evidence for the protocol layer only.
Write a separate test plan for the receiving EHR. It should cover that EHR's sandbox registration steps, the scopes it actually grants, how its sandbox patients and users differ from production, the production client registration and key rotation process, and the clinical scenarios your app must handle, such as missing context and expired tokens. Ask the EHR's integration team which differences they document, and schedule a limited production pilot with named users after that plan passes. Keep the Inferno run as a repeatable regression check that you rerun after Medplum and app upgrades.
Questions teams ask about SMART App Launch on Medplum
How much effort does a SMART app launch setup on Medplum take?
The effort depends mainly on three drivers: how many systems launch apps into Medplum or receive launches from it, how many SMART scopes each app requests, and how deep the testing goes. A single launching system with a few read-only scopes is a narrow job. Each additional launching EHR adds its own ClientApplication settings, redirect and JWKS handling, and a round of conformance testing. Scope count matters because every scope has to be checked against the access policies that decide what the app can actually read or write. Ask any partner to break the estimate down by these three drivers, since no duration can be stated responsibly without them.
Can our in-house team set up SMART App Launch on Medplum without outside help?
Yes, a capable team can do much of this internally, because Medplum is open source and its SMART App Launch guide uses Inferno, the ONC testing tool, as its example client. The harder parts are usually not the configuration itself but the decisions around it: which scopes to grant, how patient and user context is handled, how keys are rotated, and how the launch flow is verified against the other EHR's requirements. Teams without prior SMART on FHIR experience often benefit from an independent review of those decisions before go-live. Consider what you can staff and maintain over time, not only the first build.
What do we need from the receiving EHR's team?
The receiving EHR team controls the other half of the handshake, so their input is required before testing can finish. Typically you need the EHR vendor or health system to register your app, confirm the redirect and launch endpoints you provide, supply their own JWKS or client registration details, and agree on which scopes and context values their environment will issue. Timing matters: their registration and sandbox access may follow their own review cycle, which you cannot control. Ask early which steps they require, who on their side approves them, and what test environment they will provide.
Does the Medplum version or hosting choice change the SMART App Launch work?
The protocol work stays the same, but the surrounding work changes. Medplum's own docs describe SMART App Launch 2.0.0 support, and the ClientApplication settings are the same across hosting models. Self-hosting shifts ownership of the authorization server configuration, certificates, network exposure of redirect and launch URIs, and upgrades to your team. Upgrades must pass through each minor version in sequence, so a launch configuration tested on one version needs retesting after upgrades. Confirm the exact Medplum version you will run and whether your hosting path changes the redirect and JWKS hosting you need.
Which parts of the launch flow usually cause failures in testing?
Most failures come from mismatched configuration rather than missing features. Common causes include a redirect URI that differs by a trailing slash or protocol from what was registered, a JWKS URI that is unreachable from the EHR side, a launch URI that does not match the flow the launching system sends, and scopes requested that the server policy does not grant. Test each launch direction separately, because launching from Medplum and launching into Medplum use different entry points. Keep a written record of every registered value so that a change on either side can be traced quickly.
What should we ask a partner to include in a quote?
Ask for a written scope that names each launch direction, each launching or receiving system, the scope list, and the test suites to be run. The quote should separate one-time work, such as configuration, testing and documentation, from recurring work, such as retesting after Medplum upgrades and handling certificate or key rotation. Ask who performs registration with the other EHR, who owns test environments, and what the deliverables are, for example a configuration record, test evidence and a retest after fixes. Ask how changes requested after the scope is agreed are priced. Avoid quotes that do not state these items, since they make cost comparisons unreliable.
How do we test a SMART app launch against Inferno?
Inferno is the testing tool that Medplum's SMART App Launch guide uses as its example client, so it is a practical starting point for checking your flow. Run the tests against your ClientApplication settings, then repeat them after any change to redirect URIs, keys or scopes. Testing should cover both the launch and the token exchange, and it should be documented so auditors and the receiving EHR team can see what passed. Passing a conformance suite shows the flow behaves as expected, but it does not replace a review of which scopes your app should be allowed to use in production.
How DeployOpen scopes and delivers SMART App Launch work
DeployOpen plans, implements, tests and documents SMART App Launch work on Medplum inside infrastructure the client controls, whether that is an AWS account, a Kubernetes cluster, an Ubuntu host or another environment the client operates. The scope is agreed in writing before work starts, so the client knows which launch direction is covered, which ClientApplication records are created, which redirect, launch and JWKS URIs are configured, which scopes each app requests, and which Inferno test runs count as acceptance. Because a self-hosted Medplum server must be upgraded through each minor version in sequence, the written scope also states how upgrades of the server are handled during and after the build.
The written scope usually separates the work into a few deliverables: configuration of Medplum Auth and the identity provider the launch depends on, registration and testing of each app, a documented list of supported and unsupported scopes, Inferno results with the fixes behind them, and a runbook for the team that will own the deployment afterward. The client's security, compliance and clinical stakeholders review these artifacts. DeployOpen prepares the system, controls and evidence that an assessment will ask for, including configuration records and test output, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so the client should confirm early which evidence its assessor expects.
DeployOpen does not publish a price list. A quote follows from the written scope, so the useful request is a scope document listing the launch directions, apps, identity providers, environments and test cycles included, plus a statement of what the client's own team will provide, such as clinical sign-off, test accounts and access to its identity provider. Most engagements are fixed-scope. Ongoing support, upgrades and continuous retesting after apps change can be added as a retainer, which is worth pricing separately because a SMART configuration tends to need review each time a Medplum release or an app's scopes change.

