You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSRAA 3.0.0: add SsraaVersion.V3_0 with exact URI comparison and no trailing slash on base URLs #986
HL7 is releasing Security for Scalable Registration, Authentication, and Authorization (SSRAA) 3.0.0
(now universal: package hl7.fhir.uv.fast-security). The SDK targets 3.0.0. Its general requirements, "Normalization
of URI values in JWTs" (FHIR-51052, FHIR-55945), say:
URI values in JWTs are compared as case-sensitive strings with no transformation or canonicalization; the JWT
consumer SHALL NOT normalize URIs before comparing them.
A FHIR base URL SHALL NOT have a trailing slash.
The authorization endpoint must also accept both GET and POST for the authorization code flow (FHIR-52960).
Where the SDK normalizes today
Udap.Client/Client/UdapClientDiscoveryValidator.cs compares the signed metadata iss with the base URL after TrimEnd('/') and ignoring case.
Udap.Server/Registration/UdapDynamicClientRegistrationValidator.cs compares the software statement aud with
the registration endpoint using Uri.Compare(..., OrdinalIgnoreCase), which also lowercases the host and drops
default ports.
Client assertion aud at the token endpoint goes through Duende / Microsoft.IdentityModel audience validation,
which can ignore a trailing slash; check and pin the setting.
Change
New SsraaVersion.V3_0, the new default (the packages are pre-1.0).
V2_0 and V3_0: exact, ordinal comparison for iss, aud and SAN matching on both client and server.
V3_0 only: reject a configured or advertised FHIR base URL ending in / (metadata options, discovery base URL,
server SAN resolution), with a clear error.
V1_1 keeps today's lenient behaviour.
Test that the authorization endpoint accepts POST as well as GET for the authorization code flow.
Add the SSRAA 3.0.0 spec copy under docs/specifications/SSRAA/ once published.
Tests: each comparison rejects case, port and trailing-slash variants under V2_0/V3_0 and accepts them under
V1_1; V3_0 rejects a trailing-slash base URL; authorize via POST succeeds.
Activity