Skip to content

Commit

Permalink
Anonymous access policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Oct 11, 2024
1 parent eb33296 commit cbf1e0a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
33 changes: 29 additions & 4 deletions resources/seeds/AccessPolicy/anonymous.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
or:
- engine: matcho
matcho:
uri: /fhir/Questionnaire/patient-create/$assemble
uri: /fhir/Questionnaire/patient-create
request-method: get
- engine: matcho
matcho:
uri: /fhir/Questionnaire/set-password/$assemble
uri: /fhir/Questionnaire/set-password
request-method: get
- engine: matcho
matcho:
Expand All @@ -18,11 +18,36 @@ or:
- engine: matcho
matcho:
uri: /fhir/User
request-method: patch
params:
.data.reset_token: string?
.data.reset_token: string?
request-method: patch
- engine: matcho
matcho:
uri: /fhir/
request-method: post
- engine: matcho
matcho:
params:
resource/type: Patient
operation:
id: FhirCreate
resourceType: Operation
- engine: matcho
matcho:
params:
password: nil?
resource/type: User
operation:
id: FhirCreate
resourceType: Operation
- engine: matcho
matcho:
body:
id: nil?
name: patient
params:
resource/type: Role
operation:
id: FhirCreate
resourceType: Operation
engine: complex
27 changes: 2 additions & 25 deletions zenproject/zrc/system.edn
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,8 @@
access-policies
{:zen/tags #{aidbox/service}
:engine aidbox/seed-v2
:resources {:AccessPolicy {:test-wildcard-policy {:engine "allow" :link [{:resourceType "User"}]}
:admin-policy {:engine "allow"
:roleName "admin"}
:practitioner-policy {:engine "allow"
:roleName "practitioner"}
:patient-role-policy {:engine "allow"
:roleName "patient"}
:receptionist-role-policy {:engine "allow"
:roleName "receptionist"}
:twofawebhookaccess
{:engine "allow"
:link [{:resourceType "Client" :id "twofawebhook"}]}
:public-appointment-policy
{:engine "allow"
:link [{:resourceType "Client" :id "anonymous"}]}
:patient-questionnaire-policy
{:engine "allow"
:link [{:resourceType "Client" :id "patient-questionnaire"}]}
:federated-identity-signin {:engine "json-schema"
:schema {:required ["jwt"]
:properties {:jwt {:required ["iss", "aud", "sub"]
:properties {:iss {:const "https://ingest.emr.beda.software"}
:aud {:type "array", :maxItems 2, :minItems 1, :items {:enum ["software.beda.emr", "software.beda.fhirmhealth.fhirmhealth"], :type "string"}}
:sub {:type "string"
:minLength 1}}}}}}}}}
:resources {:AccessPolicy {:admin-policy {:engine "allow"
:roleName "admin"}}}}

encounter-participant-display
{:zen/tags #{aidbox.search-parameter.v1/search-parameter}
Expand Down

0 comments on commit cbf1e0a

Please sign in to comment.