Skip to content

TEFCA: reject user/ scopes with invalid_scope #960

Open

Description

@JoeShook

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

  1. added
    enhancement
    on Nov 19, 2026
  2. added a commit that references this issue on Nov 22, 2026
    db7acf6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions