Release notes
The server’s changelog, app/ferrosmart/CHANGELOG.md, as each release
cuts it. The crates the repository publishes keep their own changelogs
beside their code.
All notable changes to FerroSMART are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
0.3.0 - 2026-11-21
Added
- Breaking:
[[ferrosmart.client]]takesresources, the[[ferrosmart.resource]]bases the client’s tokens may name inaud. An authorization request, a client credentials request, a refresh, a code redemption or a launch registration naming any other base is refusedinvalid_target(RFC 8707 §2), and a client credentials request withoutresourcetakes the one base the client lists alone. A client that lists none reaches no resource server, only FerroSMART’s own endpoints, so every client table adds the bases it is for; a base no[[ferrosmart.resource]]table configures is refused at load. The admin API’s client document carriesresourcestoo, and a base taken off a client’s list is refused from its next request (#682). - The admin API:
GETandPOST /admin/clients,GETandPUT /admin/clients/{client_id},POST .../disable,POST .../enableandDELETE .../organisation_approvalchange the client registry while FerroSMART runs, andGET /admin/keyslists the signing keys with their states. Each request needs an access token FerroSMART issued for its own issuer with the newsystem/adminscope, confirmed against the store on every request, and each change commits with its audit record (client-created,client-updated,client-disabled,client-enabled). Withdrawing an organisation approval or disabling a client revokes its grants, refresh tokens and access tokens at once, at every replica, with no restart (#683). - An OpenID Connect
[[ferrosmart.upstream]]entry may namepreset = "keycloak","entra","okta"or"zitadel": the scopes, thefhirUserand role claims and the assertion algorithm of FerroSMART’s tested setup with that provider, read from a data file underapp/ferrosmart/presets/with the vendor’s documentation cited beside each value. A key the entry’s[ferrosmart.upstream.oidc]table sets wins over the preset, and the examples for the four providers use them (#733). ferrosmart subject --upstream <name> --sub <sub>prints the FerroSMARTsubof a person from their subject at that provider, the pairwise identifier a resource server binds them by (docs/architecture.md§13.6 item 9), and the management page shows the signed-in person their own (#733).ferrosmart upstream registration <name>prints what the provider must be configured with: the redirect and logout URIs, the client authentication with its JWK Set URL or certificate, PKCES256, the scopes, the claims and the roles, or for SAML 2.0 the entity IDs, the assertion consumer service and the attributes. Both commands read the configuration alone, with no key, secret or database (#733).
Changed
- The
[[ferrosmart.client]]tables seed the registry: a client the admin API created or changed keeps the store as its source, its table is no longer written at start, and start logs a warning naming it. A disabled client is found by no request, and its people’s remembered consents are forgotten (#683). - The management page lists every app holding live access to the person’s
data, organisation-approved and first-party apps included, each with a
Disconnect button. Disconnect forgets the person’s remembered consent and
revokes the app’s grants, refresh tokens and access tokens about them at
once, and leaves the organisation approval standing; the
consent-withdrawnrecord names the grants revoked (SMART App Launch 2.2.0,offline_accessandmanagement_endpoint) (#725). - A public client gets an authorization code with no consent page, on an
organisation approval or a remembered consent, only when the request’s
redirect URI is a claimed
httpsURI. A custom-scheme or loopback redirect shows the page, with a remembered choice ticked, andferrosmart config checkwarns of a first-party public client with no claimedhttpsredirect (RFC 8252 §8.6, §7.2; RFC 6749 §10.2). Confidential clients are unchanged (#726). - A remembered consent is bound to the resource server it was given for:
it answers only for the same client, the same
audand scopes it fully covers. The store migration drops the consents kept under the old key, so each person is asked once again (#727). - Every
authorization-codeaudit record names the basis of the code as itsbasisdetail:page,remembered,organisationorfirst-party(#727). - An organisation approval may list
patient/scopes for staff, and it covers them in a professional’s EHR launch with no consent page (OpenID Connect Core 1.0 §3.1.2.4). A standalone request forpatient/scopes and every patient keep the page, unless the app is first party (#727). - A client’s ceiling and a role’s scopes admit a requested
patient/,user/orsystem/scope whose permission letters are a subset of a listed scope’s, in the same context, on the same resource or under the wildcard*, and with the same query parameters, or any when the listed scope names none (SMART App Launch 2.2.0, SMART v2 scopes). A ceiling ofpatient/Composition.crsadmitspatient/Composition.rsand.r, so a deployment lists each resource once. A query-restricted ceiling still never admits the unrestricted scope (#731). - Breaking: the
protocolkey of[[ferrosmart.upstream]]is removed, and the table present names the protocol:[ferrosmart.upstream.oidc]for OpenID Connect or[ferrosmart.upstream.saml]for SAML 2.0, exactly one per entry. A configuration that still setsprotocolis refused as an unknown key; delete the line (andFERROSMART__…__PROTOCOLfrom the environment).private_key_jwtis taken when an entry names no client authentication table, so the empty[ferrosmart.upstream.oidc.private_key_jwt]header goes too and[ferrosmart.upstream.oidc.private_key_jwt.keys]alone is enough; an entry without the assertion key is refused for that missing key (#733).
Fixed
- The RFC 8414 and OpenID Connect metadata list
refresh_tokeningrant_types_supported, since the token endpoint serves that grant (RFC 8414 §2). The token endpoint refuses every grant its metadata leaves out asunsupported_grant_type, so without a login the authorization code grant is refused (#735).
0.2.0 - 2026-11-20
Added
- An openEHR
[[ferrosmart.resource]]can name the platform’s FHIR server as itsfhir_base, with thesubject_systemof thePatient.identifierthat names the EHR’s subject. At such a base the patient picker searches the FHIR server and looks the chosen patient’s EHR up at the openEHR server, each as the signed-in person, so a standalone launch withlaunch/patientgets bothpatientandehrId(SMART on openEHR draft, Context Selection and Service Discovery). A patient without an EHR the person may see is told so and enters no context (#574). - The introspection endpoint takes a confidential symmetric client’s
secret, by HTTP Basic or in the form, as the token endpoint does (RFC
7662 §2.1, RFC 6749 §2.3.1), so a gateway that introspects with
client_secret_basic, such as Apache APISIX, can sit in front of a resource server. The client’s ceiling listssystem/introspect; a wrong secret answers401invalid_clientand a client without the scope401unauthorized_client, each challengedBasic. The metadata’sintrospection_endpoint_auth_methods_supportedlistsclient_secret_basicandclient_secret_postbesideprivate_key_jwt(#639). - An administrator can approve one of the organisation’s own apps for its
staff with
[ferrosmart.client.organisation_approval](scopes, who, when), so a professional who opens it sees no consent page (SMART App Launch 2.2.0, Obtain authorization code, Response). Onlyuser/scopes with their launch, OpenID, refresh and extension scopes can be approved; a request with apatient/scope, a patient’s own login and a request beyond the approval show the page. The granted scope never exceeds the person’s roles. Each skipped page is audited with the approval as its basis, the management page lists the app as approved by the organisation, and clearing the approval revokes every token issued on it at the next start (#643). - A
[[ferrosmart.role]]may grant extension scopes, those that start with two underscores (SMART App Launch 2.2.0, Scopes and Launch Context, Extensibility), such as FerroEHR’s__ferroehr.platform. A person is granted one when the request asks for it, the client’s ceiling lists it and one of their roles grants it; the consent page names it in plain words, andscopes_supportedlists every extension scope a role grants. Any other scope outside the SMART set is still never granted to a person (#647). - The access token of a user flow carries the person’s roles in a
rolesclaim (RFC 9068 §2.2.3.1): the roles the identity provider’srole_claimscarry that a[[ferrosmart.role]]names, fixed at login and kept through every refresh. The introspection response carries them too. A Backend Services token carries none (#649). .well-known/smart-configurationand the RFC 8414 metadata name the EHR launch API aslaunch_registration_endpoint({issuer}/launch) whenever the app launch is configured, so an EHR reads it from the documents instead of building the path (#657).- A
[[ferrosmart.client]]may register its app’slaunch_uri, and the EHR launch API takesapp_launch_uriin place ofapp_client_id, so an EHR acting on a SMARTtask-ehr-launchTask, which names the app only by its launch URL, can register the launch. The URLs are compared after RFC 3986 §6.2.2 normalization, and two clients may not register one (#659). - The EHR launch API takes a Task’s
appContext(at most 8192 bytes), and the token response of that launch carries it unchanged asappContext(SMART App Launch 2.2.0, Task profile for requesting a SMART launch) (#660). - The authorization endpoint meets what OpenID Connect Core 1.0 §15.1
has every OpenID Provider implement, beside SMART App Launch 2.2.0’s
PKCE and
aud, which stay required.prompt=noneanswerslogin_requiredwith no page, andnonebeside another value isinvalid_request.prompt=loginandselect_accountreach the upstream login, andprompt=consentshows the consent page where a remembered consent or an organisation approval would answer.max_agereaches the upstream login: a login older than it, or one that names noauth_time, is begun again once withprompt=login, and one still older answerslogin_required. The ID Token’sauth_timeis the upstream login’s.ui_localesreaches the upstream login and chooses the pages’ language beforeAccept-Language.display,claims_localesandacr_valuesare taken. The OpenID Connect discovery document namesdisplay_values_supportedandui_locales_supported(#662). - A refresh request may name a
resource(RFC 8707 §2.2): the grant’s own resource server or the FHIR base paired with its openEHR base, so an app signed in at the openEHR base gets a token for the platform’s FHIR server on the same grant. The token’saudis that resource alone and its scope is the grant’s, less the clinical scopes of the other kind; the scope never widens, and any other resource isinvalid_target(#663). - An administrator can mark an approved app as the organisation’s own with
first_party = trueon its[ferrosmart.client.organisation_approval]. Its approval may then listpatient/scopes, and a patient, related person or person who logs in to it sees no consent page while the approval covers every scope offered. An app without the mark keeps the page for every patient. Each skipped page is audited asconsent-first-party-approved, the management page lists the app as the organisation’s own, and setting or clearing the mark withdraws the old approval with every token issued on it (#666). - The consent page draws identity, launch and refresh scopes (
openid,fhirUser,profile,email,launch,launch/*,offline_access,online_access) as fixed lines with no box, granted with the app whatever the form posts, so a person can no longer untick a scope the app cannot work without; resource and extension scopes keep their boxes. A[[ferrosmart.client]]may registerclient_uri,logo_uri,policy_uriandtos_uri(RFC 7591 §2, absolutehttpsURLs), which the consent page links and draws, with the logo’s origin admitted by the page’simg-srcalone. The store gains a migration (#668). - A standalone authorization request that asks a
patient/scope withoutlaunch/patientis read as askinglaunch/patient, so the patient picker supplies the patient instead of thepatient/scopes being dropped, and the grantedscopenames the inferredlaunch/patient(SMART App Launch 2.2.0, Scopes and Launch Context, Standalone apps) (#669). - An authorization request without
aud(orresource) defaults to the resource server when the deployment configures exactly one, as the token endpoint already defaultsresource; with two or more it is still refused, and a wrongaudis refused either way. Apps should still sendaud, as SMART App Launch 2.2.0 requires (#670). - When no requested scope can be granted to the person, FerroSMART shows a
page that names the configured roles that would grant one (or says the
app asks for access the server does not give it), and its button returns
to the app with
access_denied, thestateand theiss, in place of sendinginvalid_scopeback at once. The refusal is written as anauthorization.refusedaudit line (#672). - A patient whose
fhirUsernames their ownPatientat the requested FHIR server, absolute or relative to its base, or at the FHIR server paired with the requested openEHR server, sees no patient picker: their record, read again as them, is the launch context, with their EHR at a paired base, and a record that cannot be read is a page that says so. They are offered the client’spatient/scopes without a role. A professional still picks.consent::offertakes aFhirUserin place of thehas_fhir_userflag (#673). - When the identity provider sends no
fhirUserclaim, FerroSMART can find the person by an identifier: each[[ferrosmart.resource.fhir_user_lookup]]of a FHIR base names aresource_type, the upstreamclaimholding the identifier’s value and the identifier’ssystem, and FerroSMART searches[base]/[type]?identifier=[system]|[value]as the person. One match is thefhirUser; none, several or a refused search leave it out, the consent page says so, and afhir_user.lookupaudit line records the outcome without a value. A lookup on the FHIR base paired with an openEHR base serves that base too (#674). - The
profileandemailscopes are offered within a client’s ceiling, listed inscopes_supported, and, when granted, pass the upstream ID Token’snameandpreferred_username(profile) andemailandemail_verified(email) into FerroSMART’s ID Token, never into an access token (OpenID Connect Core 1.0 §5.4).claims_supportedlists the four. The store gains a migration (#676). - FerroSMART takes OpenID Connect Front-Channel Logout 1.0 at
{issuer}/frontchannel-logout: a provider that offers only front-channel logout, such as Microsoft Entra ID, renders it in an iframe with itsissand the login’ssid, and the sessions of thatsidend with theironline_accessgrants. The page is never cached and only the provider’s origins may frame it (#677). - FerroSMART has an end-session endpoint (OpenID Connect RP-Initiated
Logout 1.0), named as
end_session_endpointin discovery: it checks theid_token_hintit issued, theclient_idand apost_logout_redirect_urithe client registers under the newpost_logout_redirect_uriskey, asks the person to confirm, ends theironline_accessgrants, forwards to the provider’s own end-session endpoint and returns the browser to the app with itsstate. Register{issuer}/logout/returnat the provider as a post-logout redirect URI. Each logout is audited aslogged-out, and the store gains a migration (#677). - An upstream provider entry may authenticate with a client secret as HTTP
Basic:
[ferrosmart.upstream.oidc.client_secret_basic]withsecret_file(orsecret), in place of the default[ferrosmart.upstream.oidc.private_key_jwt]. Each entry names exactly one of the two, the secret never shows in a log or a debug rendering, and FerroSMART refuses to start when the provider’stoken_endpoint_auth_methods_supporteddoes not list the method chosen (#679). - A person can log in at a SAML 2.0 identity provider: a
protocol = "saml"entry in[[ferrosmart.upstream]]with its[ferrosmart.upstream.saml]table, and FerroSMART as one service provider in[ferrosmart.saml], its metadata at{issuer}/saml/metadata. The assertion consumer service{issuer}/saml/acstakes a response by HTTP-POST or an artifact, resolved over mutual TLS; the provider’s metadata is read again on a timer; each assertion is admitted once, on every replica; the classes at or above the provider’s minimum assurance are asked for and any other is refused; theclaimstable maps attributes to the claims offhirUser, the roles and thefhirUserlookup; and every outcome is a110122Login record naming the check that failed. The chooser lists a SAML provider beside an OpenID Connect one. An entry without[ferrosmart.saml]or with an incomplete table is refused at load (#688). - The patient picker’s token carries the person’s
roles, and an openEHR[[ferrosmart.resource]]may list the purposes of use its server accepts ([[ferrosmart.resource.purpose]], withpurpose_header, defaultx-purpose-of-use). A professional chooses one on the picker page, the EHR lookup and the look-up-again of the choice declare it in that header, the request keeps it so the two cannot differ, and each lookup’s access record names it (purposeOfEvent). A patient’s own lookup declares none (#716).
Changed
- A client presenting a rotated refresh token again within 10 seconds of
its rotation, while the new refresh token is neither used nor revoked,
gets that same new refresh token and a fresh access token instead of
having the grant revoked, so a retry after a lost response or two
requests racing (two tabs, two backend instances, two replicas) keep the
grant. A repeat after the window, by another client, or once the new
token was used still revokes the grant (RFC 9700 §2.2.2, §4.14.2; the
window is FerroSMART’s own design). Each repeat is recorded as
refresh-repeated. The store gains a migration (#667). - FerroSMART logs people in at several identity providers.
[ferrosmart.upstream]becomes[[ferrosmart.upstream]], one entry per provider with aname, an optionallabelandprotocol = "oidc", whose OpenID Connect keys (issuer,client_id,scopes,fhir_user_claim,role_claims,trusted_audiencesand theprivate_key_jwttable) move into[ferrosmart.upstream.oidc]; an environment override is nowFERROSMART__FERROSMART__UPSTREAM__0__OIDC__ISSUERand a--setisferrosmart.upstream.0.oidc.issuer. A[[ferrosmart.client]]names its providers inupstreams(every provider when it names none): one sends the browser straight there, several show a chooser at{issuer}/login. Several Microsoft Entra ID tenants are several entries. Back-channel and front-channel logouts are matched to their provider byiss, and{issuer}/upstream-jwkspublishes every provider’s assertion keys. The store gains a migration (#678).
Fixed
- The upstream login refuses an ID Token without
iat(OpenID Connect Core 1.0 §2), and takes one withoutkidwhen a single key of the provider’s set fits its algorithm. The OpenID Foundation conformance suite’s relying party modulesoidcc-client-test-missing-iatandoidcc-client-test-kid-absent-single-jwksfound both (#646, #648).
0.1.0 - 2026-11-19
Added
- The book shows every page a person meets during a launch, in the light and the dark theme: the consent page of a clinician app and of a patient app, the patient picker, the management page and the three error pages. The README and the landing page show the consent page (#623).
[ferrosmart.brand]publishes the deployment’s User Access Brands Bundle atGET {issuer}/brands(SMART App Launch 2.2.0, User Access Brands and Endpoints): a primary brand that references every FHIR endpoint, its portals and its affiliated brands, asapplication/fhir+jsonwith CORS for any origin and a weakETaganIf-None-Matchanswers with304.Bundle.timestampis the last change to the contents and each resource’smeta.lastUpdatedits own, which the store keeps across restarts and replicas. The Bundle is held to the guide’s profiles withferrobridge-validatorover the package setscripts/vendor/fhir-packages.shfetches (#602).- The management page lists every app that holds a live
offline_accessoronline_accessgrant of the person, remembered or not, says how long it stays connected, and withdraws it, as SMART App Launch 2.2.0, Best Practices asks a server to remind people which apps have offline access (#608). - The consent and management pages put plain words before a FHIR resource type, “Measurements and test results (Observation)”, for the common types (SMART App Launch 2.2.0, Best Practices, Considerations for Scope Consent) (#608).
ferrosmart client hash-secretreads a confidential symmetric client’s secret on standard input and prints its Argon2id hash at the OWASP floor (m=19456, t=2, p=1) with a fresh salt, the stringsecret_hash_fileholds. The Inferno lane runs its EHR launch with a symmetric client made this way (#601).- A standalone launch that asks for
launch/patientandlaunch/encounterat a FHIR resource server gets an encounter step in the picker: the chosen patient’s encounters, searched as the signed-in person with the scopeuser/Encounter.rs, latest first. The person picks one or goes on without, which dropslaunch/encounterfrom the offer. The chosen encounter is read again and enters the context only when itssubjectis that patient, and the token response and the access token carry it. The discovery document listscontext-standalone-encounterwhen a resource server is a FHIR one (SMART App Launch 2.2.0, Scopes and Launch Context, Standalone apps) (#604). - SMART v1 scopes (
patient/Observation.read,.write,.*) are admitted by their v2 form against a client’s ceiling and a person’s roles and granted as asked, as SMART App Launch 2.2.0, Scopes and Launch Context has a server process them, and the discovery document listspermission-v1(#604). - Confidential symmetric clients (SMART App Launch 2.2.0, Client
Authentication: Symmetric):
kind = "confidential_symmetric"withsecret_hash_file, the Argon2id PHC hash of the client’s secret at the OWASP floor, never the secret. The client authenticates at the token and revocation endpoints byclient_secret_basicorclient_secret_post(RFC 6749 §2.3.1); a failed Basic credential answers401withWWW-Authenticate: Basic, two methods in one request are refused, and the client credentials grant and a JWK Set are refused at load. The discovery documents list both methods andclient-confidential-symmetric. Migration0008adds the hash to the client table (#601). - The patient picker at an openEHR resource server: for a standalone launch
with
launch/patientat an openEHR base whose[[ferrosmart.resource]]table names asubject_namespace, the signed-in person enters the patient’s identifier and FerroSMART looks the EHR up through ITS-REST (GET [base]/ehr?subject_id=…&subject_namespace=…) with a token of the person’s own, living 30 seconds and revoked after use. The chosen EHR is looked up again before itsehrIdenters the launch context, the token response and the access token, and every lookup writes the EHDS access record (#571). [ferrosmart.upstream.private_key_jwt]: FerroSMART authenticates at its upstream provider with a JWT (OpenID Connect Core 1.0 §9) signed by the current key of its own assertion ring,[ferrosmart.upstream.private_key_jwt.keys], read as[ferrosmart.keys]is and published apart at{issuer}/upstream-jwks, so an assertion key never signs a token (RFC 8725 §3.12). It signs at thealgorithmthe provider’s registration names (RS256 by default) and names the key’s certificate byx5t#S256whencertificate_fileis set. A client secret beside it, an algorithm the key cannot sign, a certificate of another key and an assertion ring sharing a key with the token ring are refused at load. The Entra ID example uses it with a certificate credential andPS256, and its contract test verifies the assertion the stub receives (#569).- Microsoft Entra ID and Okta as the upstream login, each with an example
configuration under
examples/and no provider code. Entra ID: a single-tenant app registration’s v2.0 authority, the app roles inrolesand the directory extension attributefhirUseras the optional claimextn.fhirUser; the multitenant/commonand/organizationsauthorities fail discovery, since their metadata names another issuer. Okta: thedefaultcustom authorization server, agroupsclaim and a customfhir_userclaim. Contract tests run each example through a standalone launch against a stub serving the provider’s published discovery document, key set and token answer (#524, #525). - ZITADEL as the upstream login (
compose.zitadel.yaml, an override of the quickstart):app/ferrosmart/examples/zitadel/bootstrap.shmakes the project, its role, the application, the user and an Actions v2 target through ZITADEL’s v2 APIs and writes FerroSMART’s configuration, and the target,tools/zitadel-fhir-user, writes the user’sfhirUserclaim. CI drives a SMART standalone launch through it to a token with the mappedfhirUserand a role-granted scope (#523). [ferrosmart.upstream] trusted_audiences: the audiences an upstream ID Token may name beside FerroSMART’s client id (OpenID Connect Core 1.0 §3.1.3.7 item 3) (#523).- The Inferno lane runs group 1, Standalone Launch: the person picks the
lane’s patient at the patient picker, which searches FerroBRIDGE’s
facade, so the launch carries
launch/patient. All four groups of the kit’s STU 2.2 suite run, and every test passes against FerroBRIDGE 0.0.27, whose facade answers CORS for the kit’s origin (#520). - The Inferno lane runs its FHIR server on the family’s own stack: FerroBRIDGE’s
facade, with FerroEHR as its CDR, serves the person’s
fhirUseras a Practitioner, and Keycloak is the upstream login. Group 4, Token Introspection, and group 2, EHR Launch, with the lane as the EHR, run beside group 3, and the discovery exception that waited on the authorization endpoint is gone (#520). compose.keycloak.yaml, an override of the quickstart that runs Keycloak with the example realm as the login ofcompose.yaml’s FerroSMART, in the same compose project (#522).- A Keycloak example as the upstream login: a realm with fixed ids whose
confidential client
ferrosmarttakes the authorization code flow with PKCE S256, and whose mappers write the user’sfhir_userattribute and realm roles into the ID Token, and the[ferrosmart.upstream]and[[ferrosmart.role]]configuration that reads them, with no Keycloak code. CI drives a SMART standalone launch through it to a token with the mappedfhirUser(#522). - The
ferrosmartserver:serve,config checkandhealthcheckon the family’s stack, the[ferrosmart]configuration with its issuer andRS256signing key ring (current, previous and next key), the RFC 8414 metadata, the SMART configuration and the JWK Set (#514). - The PostgreSQL store with its embedded migrations, run under the
advisory lock of
sqlxat start, and its readiness indicator; the client registry of[[ferrosmart.client]]tables, each checked against SMART’s registration rules (a JWK Set by URL or by value, withkty,kidand bare public members) and written to the store at every start (#514). - The token endpoint with SMART Backend Services’ client credentials grant.
The
private_key_jwtassertion is checked as SMART App Launch 2.2.0, Client Authentication: Asymmetric, has it: RS384 or ES384,typJWTorclient-authentication+jwt, one key bykidfrom the registered set or URL, ajkuonly as registered, anaudof one string naming the token endpoint or the issuer, anexpat most five minutes ahead, and ajtiused once across replicas. The scope is narrowed to the client’s ceiling, the audience is chosen byresource(RFC 8707) among[[ferrosmart.resource]], and the RFC 9068 access token is signed underRS256, recorded in the store and answered withno-store. Each refusal is its RFC 6749 §5.2 error, and every issue and refusal writes an audit line (#514). - The EHR launch API, FerroSMART’s own design since SMART defines none
(#517). An EHR client whose ceiling lists
system/launch.cposts the launch context toPOST /launch, authenticated with itsprivate_key_jwtassertion as at the token endpoint, and receives a single-uselaunchvalue that lives five minutes, stored as its SHA-256 and bound to the EHR, the app (app_client_id) and the resource server (resource). An EHR can instead sign alaunch+jwtwith a key of its registered JWK Set and hand it to the app as thelaunchvalue; itsiss, soleaud,expandjtiare checked and a replay is refused. The context (patient,encounter,fhirContext,intent,need_patient_banner,tenant, andehrIdfor an openEHR server) is checked against SMART’s rules, and an unknown parameter or claim is refused. At/authorizealaunchwith thelaunchscope is redeemed for that app andaud, the consent page offerslaunch, itslaunch/patientandlaunch/encounterhints and thepatient/scopes its patient allows, and the token response carries the context when the person keepslaunch, withpatient,encounterandehrIdin the access token too. The SMART configuration listslaunch-ehr,context-ehr-patient,context-ehr-encounter,context-bannerandpermission-patient. - The authorization code flow of SMART App Launch 2.2.0, standalone
launch: the authorization endpoint by
GETandPOST(code with PKCES256only,audamong the configured resource servers, the redirect URI matched exactly, an untrusted client or redirect shown and never redirected to), the login at any OpenID Connect provider through[ferrosmart.upstream], the person’s pairwisesub,fhirUserand roles from configured claims, the scopes narrowed by the client’s ceiling and[[ferrosmart.role]]before the consent page, which FerroUI draws in the FerroSMART brand with no script and lets the person untick any scope, decline or remember the choice, the single-use code withstateandiss(RFC 9207), and the code exchange for public and asymmetric clients with an RFC 9068 access token, an RS256 ID Token carryingfhirUserand thesmart_style_urlof[ferrosmart.branding]; a second use of a code revokes what the first issued.GET /managelists the remembered choices and withdraws one, and the OpenID Connect discovery document and the App Launch SMART configuration describe the login once it is configured (#515). - The introspection endpoint,
POST /introspect(RFC 7662 with SMART App Launch 2.2.0, Token Introspection): a client whose ceiling listssystem/introspectauthenticates by its assertion or presents a bearer token FerroSMART issued for its own issuer with that scope, and may introspect any client’s token. An active token answersscope,client_id,exp,iat,sub,aud,iss, the grant’s launch context andfhirUser; an expired, revoked, forged or unknown token answers{"active": false}alone (#518). - The revocation endpoint,
POST /revoke(RFC 7009): a confidential client by its assertion, a public client byclient_id, each only for its own tokens. Revoking a refresh token revokes its grant with every token under it; an unknown token answers200(#518). - The refresh token grant at the token endpoint (SMART App Launch 2.2.0,
Refresh access token): a public client by
client_id, a confidential one by its assertion, each only with its own token. Every refresh rotates the token; a rotated token presented again revokes its grant with every token under it (RFC 9700 §4.14.2). Ascopemay narrow the grant and never widen it, the rotated token keeps the grant’s scope, and the answer carries the launch context.[ferrosmart] refresh_idle(thirty days) andonline_idle(eight hours) set how long anoffline_accessand anonline_accessrefresh token last unused, and anonline_accessone ends with its upstream session. A client registersrefresh_tokenonly besideauthorization_code. The code exchange opens the grant and answers its first refresh token when the person grantedoffline_accessoronline_access, which the consent page offers only to a client whose ceiling lists it and that registersrefresh_token; each login at the upstream provider is recorded as the session anonline_accessgrant ends with, and withdrawing a remembered consent revokes its grants (#518). POST /backchannel-logout, the back-channel logout URI to register at the upstream provider (OpenID Connect Back-Channel Logout 1.0): a Logout Token that checks ends the upstream sessions it names and revokes theironline_accessgrants with every token under them, leavingoffline_accessgrants; a token that does not check answers400with an OAuth 2.0 error body, every answerno-store(#518).- Migration 0005: the grants, the refresh tokens stored as their SHA-256,
the upstream sessions an
online_accessgrant ends with, and the grant of each access token, so revocation reaches every replica at once. The RFC 8414 metadata names both endpoints and their client authentication methods (#518). - The release lane: a
ferrosmart-vX.Y.Ztag buildsx86_64andaarch64tarballs for GNU and musl libc, each with its checksum, a CycloneDX and an SPDX SBOM and SLSA Build Level 3 provenance signed through Sigstore, and the imageghcr.io/ferrohealth/ferrosmartforlinux/amd64andlinux/arm64on distroless static, pushed by digest with its provenance and SBOMs as OCI referrers. Every finding of a full scan of the image and the tarballs needs an OpenVEX judgement before the release publishes, and the image is tagged only once it carries no fixable HIGH or CRITICAL finding, and a weekly scan of the published image files an issue for a new fixable one.compose.yamlis the quickstart beside PostgreSQL, attached to every release (#519). - The audit records, kept in FerroSMART’s own store (migration 0007): every
token request, issued or refused, is the ITI-71 audit event in the form
of BALP 1.1.4’s
IHE.IUA.71, and every login at the upstream provider a DICOM User Authentication event of type Login, each a FHIR R4AuditEventwritten throughihe-atna. An issued token and its record commit in one transaction; a token request whose record cannot be committed is answered503with no token, and a login whose record cannot be committed goes no further. A record names the client, the person’s pairwise subject and the token’sjti, never a token, an assertion, a verifier or a secret. The optional[ferrosmart.audit.feed]forwards the records to an Audit Record Repository over the ITI-20 ATX: FHIR Feed, andGET /auditreads them by subject and time with a token carryingsystem/AuditEvent.rs(#534). - The Inferno SMART App Launch test kit lane: the kit’s STU 2.2 suite runs
in CI against FerroSMART with FerroEHR as the resource server, every
exchange over TLS, and fails on any result that differs from the expected
results, which hold each test to
passoutside a listed exception. Group 3, Backend Services, runs; the groups whose steps have not landed are listed as pending in every run (#520). - Every other write FerroSMART makes for a person or a client commits with
its audit record in one transaction: a code issued, a consent remembered
or withdrawn, a token or a grant revoked, a refresh token rotated or
reused, a code reused, and an upstream session ended (DICOM Logout). Their
codes are in
urn:ferrosmart:audit-event, our own design where no IHE or BALP pattern exists, and a write whose record cannot be committed does not happen (#554). - The EHR launch API writes audit records (#558): a registration commits
with its launch row and a redemption with its use in one audited
transaction (
launch-registered,launch-redeemed), and a refused registration or redemption is alaunch-refusedrecord. A launch whose record cannot be kept is not kept. No record holds the launch value or a context value. - The patient picker of a standalone launch: a client that may ask for
launch/patientat a FHIR resource server is shown, after the login and before the consent, a page that searchesPatientby name or identifier as the signed-in person, with a token of FerroSMART’s own carrying their pairwisesubandfhirUser, scopeuser/Patient.rs, living 30 seconds and revoked after the request. The chosen patient is read again as them, enters the launch context, and reaches the token response and the access token as an EHR launch’s does. Every search and read writes the access record of Regulation (EU) 2025/327 Annex II 3.2 throughehds-logging, and a failed search is an error page (#516).
Changed
- The consent, picker, management and error pages draw FerroSMART’s own
mark, the shield with the keyhole, through FerroUI 0.6.11
(
view::shell::ferrosmart_mark), in the brand’s yellow fill roles, where they drew a key glyph; the error pages now lead with the same lockup (#612). access_token_lifetimeabove one hour is refused at load, as SMART App Launch 2.2.0, App Launch has access tokens live no longer (#604).- FerroSMART authenticates to every upstream identity provider with
private_key_jwtalone (OpenID Connect Core 1.0 §9).[ferrosmart.upstream.private_key_jwt]is required, and the keysclient_secretandclient_secret_fileare gone from[ferrosmart.upstream], so a configuration that names one is refused at load, as is a public upstream client. Each assertion names the provider’s issuer as its soleaudand is typedclient-authentication+jwt(RFC 10070 §4). The Okta example moves to a public key on the integration, the ZITADEL bootstrap to Private Key JWT with the application key ZITADEL generates, held under its key id, and the README, the architecture and the book describe all four providers in one shape: login, client authentication,fhirUser, roles and how each is tested (#619). - The Keycloak example authenticates FerroSMART with
private_key_jwt: the realm’s client takes theclient-jwtauthenticator and reads FerroSMART’s{issuer}/upstream-jwks, socompose.keycloak.yamland the CI lanes make anupstream_assertion_keyin place of akeycloak_client_secret(#569). - The audit lane takes
ihe-atnaandehds-logging0.23. Their FHIR Feed sends through FerroSMART’s own outbound client as aFeedClient(audit_feed), so FerroSMART links one copy offerrohealth-smartwith no[patch.crates-io]in the workspace (#549).
Fixed
- A Backend Services access token lives at most five minutes, whatever
access_token_lifetimesays, as SMART App Launch 2.2.0, Backend Services, Issue Access Token hasexpires_innot exceed 300 (#603). - A client assertion sent with a
client_idother than itsissis refused withinvalid_client, as SMART App Launch 2.2.0, Client Authentication: Asymmetric, Signature Verification requires (#601). - An expired client assertion whose signature holds is refused as
invalid_clientwith the description “the client_assertion has expired”, told apart from one that does not verify (RFC 7523 §3). The examples of SMART App Launch 2.2.0 §9 run as test vectors (#609). - The SMART configuration lists every capability FerroSMART supports and
nothing else (SMART App Launch 2.2.0, Conformance, Capabilities): it adds
authorize-post,permission-offline,permission-online,context-standalone-patientwhen the patient picker can search a resource server, andcontext-stylewhen[ferrosmart.branding] smart_style_urlis set. It namestoken_endpoint_auth_signing_alg_values_supportedbesideprivate_key_jwt, andscopes_supportedlists the identity, launch context and refresh scopes FerroSMART honours (#600). - The token endpoint answers a request from one of the client’s registered
origins, the origins of its redirect URIs, with
Access-Control-Allow-OriginandVary: Origin, so a browser app can read its token response (SMART App Launch 2.2.0, Considerations for CORS support). Every other origin gets no CORS header (#560).