node-red-contrib-uos-nats 0.1.8 → 0.1.9
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/README.md +1 -1
- package/nodes/uos-config.html +1 -1
- package/nodes/uos-config.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Fields:
|
|
|
31
31
|
- **Host / Port** – IP address of your controller (e.g. `192.168.10.100`) and the NATS port `49360`.
|
|
32
32
|
- **Client Name** – used for the NATS inbox prefix (`_INBOX.<name>`).
|
|
33
33
|
- **Client ID / Secret** – OAuth2 client credentials created in the Control Center.
|
|
34
|
-
- **Scope** – fixed to `hub.variables.provide hub.variables.readwrite hub.variables.readonly` so the nodes can register providers and query the REST metadata; it is not editable in the UI.
|
|
34
|
+
- **Scope** – fixed to `hub.variables.provide hub.variables.readwrite hub.variables.readonly hub.providers.read` so the nodes can register providers and query the REST metadata; it is not editable in the UI.
|
|
35
35
|
- **Granted scopes** – click *Refresh* to query the token endpoint and show the scopes currently granted to that client.
|
|
36
36
|
|
|
37
37
|
The config node automatically fetches tokens via Client Credentials flow and exposes helper endpoints so other nodes can list providers and variables. The token endpoint is derived from the configured host (`https://<host>/oauth2/token`), so there is no additional field to maintain.
|
package/nodes/uos-config.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
|
-
const FIXED_SCOPE = 'hub.variables.provide hub.variables.readwrite hub.variables.readonly';
|
|
2
|
+
const FIXED_SCOPE = 'hub.variables.provide hub.variables.readwrite hub.variables.readonly hub.providers.read';
|
|
3
3
|
RED.nodes.registerType('uos-config', {
|
|
4
4
|
category: 'config',
|
|
5
5
|
defaults: {
|
package/nodes/uos-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const fetch = require('node-fetch');
|
|
2
2
|
const { connect } = require('nats');
|
|
3
|
-
const DEFAULT_SCOPE = 'hub.variables.provide hub.variables.readwrite hub.variables.readonly';
|
|
3
|
+
const DEFAULT_SCOPE = 'hub.variables.provide hub.variables.readwrite hub.variables.readonly hub.providers.read';
|
|
4
4
|
|
|
5
5
|
if (!process.env.NODE_TLS_REJECT_UNAUTHORIZED) {
|
|
6
6
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|