Repository navigation
Directory: probe each endpoint's SMART configuration - #48
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every http(s) Endpoint on the Directory page now gets a SMART check beside the existing UDAP one.
{address}/.well-known/smart-configuration, alongside the UDAP probes. An address shared by several endpoints is probed once.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/Smartanswers 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-escapemetadataUrl.Tests:
DirectorySearchTests, 17 passing, includingSmartProbesummary/detection. Checked on a local Release publish:example.orgendpoints show none.🤖 Generated with Claude Code