Skip to content

Commit

Permalink
Add separated client for two fa webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Oct 10, 2024
1 parent 80328b3 commit c46a1bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions env/aidbox
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ TWO_FACTOR_WEBHOOK_URL="http://devbox:8080/webhook/two-factor-confirmation"
TWO_FACTOR_WEBHOOK_AUTHORIZATION="Basic cm9vdDpzZWNyZXQ=" # root:secret
AIDBOX_CSS=http://localhost:3000/aidbox.css
SMTP_PROVIDER=console
TWO_FA_SECRET=secret
2 changes: 1 addition & 1 deletion env/aidbox-2fa
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ AIO_HOST=0.0.0.0
TWO_FACTOR_ISSUER_NAME=MammoChat
TWO_FACTOR_VALID_PAST_TOKENS_COUNT=5
TWO_FACTOR_WEBHOOK_URL="http://devbox:8080/webhook/two-factor-confirmation"
TWO_FACTOR_WEBHOOK_AUTHORIZATION="Basic cm9vdDpzZWNyZXQ=" # root:secret
TWO_FACTOR_WEBHOOK_AUTHORIZATION="Basic dHdvZmF3ZWJob29rOnNlY3JldA==" # twofawebhook:secret
5 changes: 5 additions & 0 deletions zenproject/zrc/system.edn
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
:secret "123456"}
:anonymous {:grant_types [:basic]
:secret "secret"}
:twofawebhook {:grant_types [:basic]
:secret #env TWO_FA_SECRET}
:patient-questionnaire {:grant_types [:basic]
:secret "secret"}}
:AidboxConfig {:provider {:provider
Expand Down Expand Up @@ -97,6 +99,9 @@
: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"}]}
Expand Down

0 comments on commit c46a1bc

Please sign in to comment.