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
TEFCA: reject user/ scopes with invalid_scope #960
Why now:SOP Facilitated FHIR Implementation v2.0 (published draft, Feb 2026) §6.2 moves all TEFCA FHIR registration, authentication and authorization to HL7 SSRAA from Q1 2027. The Udap.* packages are pre-1.0 and follow TEFCA's Facilitated FHIR work as it evolves. TEFCA rules apply only to communities configured with AddUdapTefcaValidation, and are options so a deployment can match the SOP version it is bound to.
TEFCA Facilitated FHIR defines two flows: B2B client credentials and Individual Access Services, which use patient-level access (SOP v2.0 §6.11). Neither carries a user-level authorization, so user/ scopes have no valid use in a TEFCA community. v2.0 §6.11 Registration item 10 already requires invalid_scope rather than silently converting a user scope to a system scope. This change applies that consistently: TEFCA communities refuse every user/ scope with invalid_scope, at registration and at the token endpoint. Set TefcaValidationOptions.RejectUserScopes = false to allow them.
Change: a TEFCA validation option, on by default for TEFCA communities, that rejects user/ scopes with invalid_scope at registration and at the token endpoint.
Tests: registration and token requests with user/ scopes in a TEFCA community are rejected; other communities are unaffected.
Activity
TEFCA: reject user/ scopes with invalid_scope