Skip to content

Commit 2af9ffd

Browse files
committed
:Merge remote-tracking branch 'origin/master' into primary-res-req-body-fix
2 parents 278f43a + e686ddb commit 2af9ffd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6714
-3478
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ coverage.lcov
2424
.nyc_output
2525
.data
2626
coverage/
27+
DockerfileARM

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
2+
dist: jammy
23
node_js:
34
- "lts/fermium"
45
- "lts/gallium"

config/config.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ The following config option are provided by the OpenHIM. All of these options ha
8484
"openid": {
8585
// Openid connect provider realm url link
8686
"url": "http://localhost:9088/realms/platform-realm",
87+
// (Optional) Openid connect provider issuer url incase this is different from the api url e.g. if you are using a proxy
88+
"issuerUrl": "http://localhost:9088/realms/platform-realm",
8789
// Callback URL used by openid connect provider (should be the same callback URL specified in realm)
8890
"callbackUrl": "http://localhost:9000",
8991
// CLient ID specified in the realm
@@ -135,15 +137,18 @@ The following config option are provided by the OpenHIM. All of these options ha
135137
"enableJWTAuthentication": false,
136138
// JWT specific config
137139
"jwt": {
138-
// The secret or public key used by the encryption algorithm in signing the token
140+
// The URL to the JSON Web Key Set (JWKS) endpoint. Either this or the secretOrPublicKey must be provided.
141+
"jwksUri": "",
142+
// The secret or public key used by the encryption algorithm in signing the token. The value is either
143+
// The secret as a string or a path to a public key. Either this or the jwksUri must be provided.
139144
"secretOrPublicKey": "",
140-
// The algorithm used to sign the token. i.e. HS256, RS256, ES256, PS256, etc
145+
// (required) The algorithm used to sign the token. i.e. HS256, RS256, ES256, PS256, etc
141146
"algorithms": "",
142-
// The JWT Audience (aud) is a registered claim field in the payload.
143-
// It identifies the intended recipients of the JWT. These values are usually case sensitive strings.
147+
// (optional) The JWT Audience (aud) is a registered claim field in the payload.
148+
// It identifies the intended recipients of the JWT. These values are usually case sensitive strings.
144149
"audience": "",
145-
// The JWT Issuer (iss) is a registered claim field in the payload.
146-
// It identifiers the principal JWT issuer. This value is a case sensitive string.
150+
// (required) The JWT Issuer (iss) is a registered claim field in the payload.
151+
// It identifiers the principal JWT issuer. This value is a case sensitive string.
147152
"issuer": ""
148153
}
149154
},

config/default.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"enableCustomTokenAuthentication": false,
8282
"enableJWTAuthentication": false,
8383
"jwt": {
84+
"jwksUri": "",
8485
"secretOrPublicKey": "",
8586
"algorithms": "",
8687
"audience": "",
@@ -164,5 +165,6 @@
164165
"watchFSForCert": false,
165166
"certPath": "/etc/letsencrypt/live/openhim.jembi.org/cert.pem",
166167
"keyPath": "/etc/letsencrypt/live/openhim.jembi.org/privkey.pem"
167-
}
168+
},
169+
"openhimConsoleBaseUrl": "http://localhost:9000"
168170
}

config/development.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"watchFSForCert": false,
2727
"certPath": "resources/certs/default/cert.pem",
2828
"keyPath": "resources/certs/default/key.pem"
29-
}
29+
},
30+
"openhimConsoleBaseUrl": "http://localhost:9000"
3031
}

config/test.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@
4545
"watchFSForCert": false,
4646
"certPath": "resources/certs/default/cert.pem",
4747
"keyPath": "resources/certs/default/key.pem"
48-
}
48+
},
49+
"openhimConsoleBaseUrl": "http://localhost:9000"
4950
}

docker-compose.deps.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: "3"
2+
3+
services:
4+
zookeeper:
5+
image: docker.io/bitnami/zookeeper:3.8
6+
ports:
7+
- "2181:2181"
8+
volumes:
9+
- "zookeeper_data:/bitnami"
10+
environment:
11+
- ALLOW_ANONYMOUS_LOGIN=yes
12+
13+
kafka:
14+
image: docker.io/bitnami/kafka:3.4
15+
ports:
16+
- "9092:9092"
17+
volumes:
18+
- "kafka_data:/bitnami"
19+
environment:
20+
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
21+
- ALLOW_PLAINTEXT_LISTENER=yes
22+
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
23+
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
24+
depends_on:
25+
- zookeeper
26+
27+
mongo-db:
28+
container_name: mongo-db
29+
image: mongo:4.0
30+
ports:
31+
- "27017:27017"
32+
volumes:
33+
- "mongo-data:/data/db"
34+
restart: unless-stopped
35+
36+
volumes:
37+
mongo-data:
38+
zookeeper_data:
39+
kafka_data:

0 commit comments

Comments
 (0)