Skip to content

Commit

Permalink
MOL-487/MOL-488: implement jwt authentication for
Browse files Browse the repository at this point in the history
  • Loading branch information
tdang1-shopmacher authored and NghiaDTr committed Oct 25, 2024
1 parent 63a5ade commit b0f7f34
Show file tree
Hide file tree
Showing 17 changed files with 446 additions and 102 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ dist
.idea
build/
processor/.env
processor/junit-report.xml
processor/junit-report.xml
application/.env
application/*/.env
4 changes: 4 additions & 0 deletions connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ deployAs:
- key: MOLLIE_BANK_TRANSFER_DUE_DATE
description: Payment method Bank Transfer due date (1d -> 100d)
default: "14d"
- key: CTP_AUTHENTICATION_MODE
description: To enable secure mode for connector requests using JWT authentication (0 or 1)
required: true
default: "0"
securedConfiguration:
- key: MOLLIE_API_TEST_KEY
description: Mollie PSP test API key
Expand Down
1 change: 1 addition & 0 deletions processor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CTP_CLIENT_SECRET=<YOUR_CTP_CLIENT_SECRET>
CTP_PROJECT_KEY=<YOUR_CTP_PROJECT_KEY>
CTP_SCOPE=<YOUR_CTP_PROJECT_SCOPE>
CTP_REGION=<YOUR_CTP_REGION>
CTP_AUTHENTICATION_MODE=<YOUR_CTP_AUTHENTICATION_MODE>

## Commercetools API URLs
CTP_AUTH_URL=https://auth.<YOUR_CTP_REGION>.commercetools.com
Expand Down
1 change: 1 addition & 0 deletions processor/.env.jest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CTP_CLIENT_SECRET=12345678901234567890123456789012
CTP_PROJECT_KEY=TEST
CTP_SCOPE=TEST
CTP_REGION=europe-west1.gcp
CTP_AUTHENTICATION_MODE=0
## MOLLIE vars
MOLLIE_PROFILE_ID=pfl_12345
DEBUG=0
Expand Down
Loading

0 comments on commit b0f7f34

Please sign in to comment.