@5minds/node-red-contrib-processcube 0.10.3-feature-e75e2f-lybzmwlq → 0.10.3-feature-918efd-lyeczafy

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ {
2
+ "issuerUrl": "http://authority:11560",
3
+ "applicationPort": 11560,
4
+ "development": {
5
+ "builtInReactDevServer": false,
6
+ "detailedErrors": true,
7
+ "disableHttpsEnforcement": true,
8
+ "enableLocalhostImplicit": true,
9
+ "fixWrongHostnames": true
10
+ },
11
+ "studio": true,
12
+ "engines": [
13
+ {
14
+ "clientId": "5minds_engine",
15
+ "clientSecret": "5minds_engine"
16
+ }
17
+ ],
18
+ "database": {
19
+ "dialect": "sqlite",
20
+ "storage": "storage/database.sqlite",
21
+ "logging": false
22
+ },
23
+ "extensions": {
24
+ "path": "/app/extensions",
25
+ "configs": {
26
+ "username_password": {}
27
+ }
28
+ },
29
+ "externalTaskWorkers": [
30
+ {
31
+ "clientId": "nodered",
32
+ "clientSecret": "nodered",
33
+ "scope": "engine_etw engine_read engine_write"
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "users": [
3
+ {
4
+ "username": "admin",
5
+ "password": "admin",
6
+ "scopes": ["openid", "profile", "email", "engine_read", "engine_write", "upe_admin"],
7
+ "claims": {
8
+ "email": "admin@admin.de"
9
+ }
10
+ }
11
+ ]
12
+ }
package/Dockerfile CHANGED
@@ -12,11 +12,8 @@ WORKDIR /data
12
12
 
13
13
  COPY --from=builder /src/node-red-contrib-processcube /src/node-red-contrib-processcube
14
14
 
15
- RUN npm install /src/node-red-contrib-processcube/
16
-
17
15
  COPY nodered/package.json package.json
18
16
  RUN npm install
19
17
 
20
- COPY nodered/node-red-contrib-processcube-flows.json node-red-contrib-processcube-flows.json
21
18
 
22
- ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/data/node-red-contrib-processcube-flows.json"]
19
+ ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/nodered/node-red-contrib-processcube-flows.json", "--settings", "/nodered/settings.js"]
@@ -18,4 +18,16 @@ services:
18
18
  - 8000:8000
19
19
  volumes:
20
20
  - ./processes:/processes:ro
21
+ environment:
22
+ iam__baseUrl: http://authority:11560
23
+ iam__allowAnonymousRootAccess: true
21
24
  command: --seed-dir=/processes --port 8000
25
+
26
+ authority:
27
+ image: 5minds/processcube_authority:3.0.4
28
+ ports:
29
+ - 11560:11560
30
+ volumes:
31
+ - ./.processcube/authority/config:/etc/authority/config:ro
32
+ environment:
33
+ UPE_SEED_PATH: /etc/authority/config/upeSeedingData.json
@@ -76,9 +76,14 @@ module.exports = function(RED) {
76
76
  node.send({topic: externalTask.topic, payload: payload, externalTaskId: externalTask.flowNodeInstanceId});
77
77
  });
78
78
  },
79
- ).then(externalTaskWorker => {
79
+ ).then(async externalTaskWorker => {
80
80
  node.status({fill: "blue", shape: "ring", text: "subcribed"});
81
- externalTaskWorker.start();
81
+
82
+ externalTaskWorker.identity = node.server.identity;
83
+ node.server.registerOnIdentityChanged((identity) => {
84
+ externalTaskWorker.identity = identity;
85
+ });
86
+ await externalTaskWorker.start();
82
87
 
83
88
  node.on("close", async () => {
84
89
  try {
@@ -25,7 +25,8 @@ module.exports = function(RED) {
25
25
  config.messagename,
26
26
  {
27
27
  processInstanceId: config.processinstanceid,
28
- payload: msg.payload
28
+ payload: msg.payload,
29
+ identity: node.server.identity
29
30
  }
30
31
 
31
32
  ).then((result) => {