Writing AuthorizationInterceptor rules for HAPI FHIR
Designing allow and deny rules by resource type, compartment and operation, patient-scoped access, query filters, and testing rules against real request patterns.

Building authorization, consent, audit logging and SMART on FHIR access around a HAPI FHIR server with its interceptors and an external identity provider.
Designing allow and deny rules by resource type, compartment and operation, patient-scoped access, query filters, and testing rules against real request patterns.
Adding SMART App Launch style OAuth 2.0 access to a HAPI FHIR server using Keycloak as the authorization server: discovery document, scopes, token validation in an interceptor and mapping scopes to rules.
Implementing an IConsentService to hide or redact data based on Consent resources and local policy, performance and search cache effects, and audit records.
Using the SearchNarrowingInterceptor to scope searches and conditional operations to permitted compartments and value sets, and pairing it with authorization rules.
Generating standards-based AuditEvent records for reads, searches and writes, sending them to a separate audit repository, and supplying user and client context.
Restricting access to documents, images and exported files with Binary.securityContext, setting it on bulk export jobs, and storage-level protections.
Configuring allowed origins, credentials, headers and methods so web apps can call the server, and avoiding wildcard origins with credentials.
Protecting reindex, expunge, partition management, package install and other privileged operations, disabling unused interactions and separating admin access.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.