@5minds/node-red-contrib-processcube 1.5.10-logging-identity-not-refreshing-9c56c8-m49mgx6e → 1.5.10-logging-identity-not-refreshing-26fa8f-m49o2y8n

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.5.10-logging-identity-not-refreshing-9c56c8-m49mgx6e",
3
+ "version": "1.5.10-logging-identity-not-refreshing-26fa8f-m49o2y8n",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -85,6 +85,7 @@ module.exports = function (RED) {
85
85
  }
86
86
 
87
87
  async function getFreshIdentity(url, node) {
88
+ node.log('refreshing for url: ' + url);
88
89
  try {
89
90
  if (
90
91
  !RED.util.evaluateNodeProperty(n.clientId, n.clientIdType, node) ||
@@ -102,13 +103,15 @@ module.exports = function (RED) {
102
103
  });
103
104
 
104
105
  const body = await res.json();
106
+ node.log('auth url: ' + body);
105
107
 
106
- const issuer = await oidc.Issuer.discover(body);
108
+ const issuer = await oidc.Issuer.discover('http://authority:11650');
107
109
 
108
110
  const client = new issuer.Client({
109
111
  client_id: RED.util.evaluateNodeProperty(n.clientId, n.clientIdType, node),
110
112
  client_secret: RED.util.evaluateNodeProperty(n.clientSecret, n.clientSecretType, node),
111
113
  });
114
+ node.log('new client: ' + JSON.stringify(client));
112
115
 
113
116
  const tokenSet = await client.grant({
114
117
  grant_type: 'client_credentials',