Skip to content

Directory: probe each endpoint's SMART configuration - #48

Merged
JoeShook merged 1 commit into
mainfrom
directory-smart-probe
Dec 2, 2026
Merged

JoeShook merged 1 commit into
mainfrom
directory-smart-probe

Conversation

@JoeShook

@JoeShook JoeShook commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Every http(s) Endpoint on the Directory page now gets a SMART check beside the existing UDAP one.

  • Probes {address}/.well-known/smart-configuration, alongside the UDAP probes. An address shared by several endpoints is probed once.
  • Shows View SMART configuration with a summary chip: client authentication methods, PKCE, registration endpoint, and the number of capabilities (listed in the chip's tooltip). An endpoint without one reads "No SMART configuration at …".
  • Drops the NDH STU1 base-ext-dynamicRegistration "smart" node. STU2 removed that extension, and the node fetched the configuration while the tree was being built, where a failure could throw.
  • Metadata/Smart answers 204 instead of a 500 when the configuration can't be read. Misses no longer reach the browser console or the server's error log. The web and iOS clients read 204 as null (the SMART launch pages already treat null as missing) and URL-escape metadataUrl.
  • The iOS client change couldn't be compiled locally; this build compiles it.

Tests: DirectorySearchTests, 17 passing, including SmartProbe summary/detection. Checked on a local Release publish:

  • CMS endpoints (athenahealth, Harris, healow, Practice Fusion) show their SMART configurations.
  • HL7 NDH RI example.org endpoints show none.
  • No console errors in either.

🤖 Generated with Claude Code

Every http(s) Endpoint now gets a SMART node beside the UDAP one. The page
probes {address}/.well-known/smart-configuration (shared addresses once,
alongside the UDAP probes) and shows "View SMART configuration" with a
summary: client authentication methods, PKCE, registration endpoint and the
capability count (the capabilities are in the chip's tooltip). An endpoint
without one reads "No SMART configuration at ...".

This replaces the NDH STU1 base-ext-dynamicRegistration "smart" node, which
STU2 dropped and which fetched the configuration while building the tree.

Metadata/Smart answers 204 when the configuration cannot be read, rather than
throwing a 500, so misses stay out of the browser console and the server's
error log; the clients read 204 as null and escape the metadataUrl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JoeShook
JoeShook merged commit 5e8aff1 into main Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant