-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '3rd-party-broker' into update-broker-guards
- Loading branch information
Showing
29 changed files
with
756 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ on: | |
description: 'flowfuse/nr-file-nodes branch name' | ||
required: true | ||
default: 'main' | ||
nr_assistant_branch: | ||
description: 'flowfuse/nr-assistant branch name' | ||
required: true | ||
default: 'main' | ||
pull_request: | ||
types: | ||
- opened | ||
|
@@ -120,16 +124,34 @@ jobs: | |
secrets: | ||
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
publish_nr_assistant: | ||
name: Build and publish nr-assistant package | ||
needs: validate-user | ||
if: | | ||
needs.validate-user.outputs.is_org_member == 'true' && | ||
github.event_name == 'workflow_dispatch' && | ||
inputs.nr_assistant_branch != 'main' | ||
uses: 'flowfuse/github-actions-workflows/.github/workflows/[email protected]' | ||
with: | ||
package_name: nr-assistant | ||
publish_package: true | ||
repository_name: 'FlowFuse/nr-assistant' | ||
branch_name: ${{ inputs.nr_assistant_branch }} | ||
release_name: "pre-staging-${{ inputs.nr_assistant_branch }}" | ||
secrets: | ||
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
publish_nr_launcher: | ||
name: Build and publish nr-launcher package | ||
needs: | ||
- validate-user | ||
- publish_nr_project_nodes | ||
- publish_nr_file_nodes | ||
- publish_nr_assistant | ||
if: | | ||
needs.validate-user.outputs.is_org_member == 'true' && | ||
github.event_name == 'workflow_dispatch' && | ||
(always() && inputs.nr_launcher_branch != 'main') || needs.publish_nr_project_nodes.result == 'success' || needs.publish_nr_file_nodes.result == 'success' | ||
(always() && inputs.nr_launcher_branch != 'main') || needs.publish_nr_project_nodes.result == 'success' || needs.publish_nr_file_nodes.result == 'success' || needs.publish_nr_assistant.result == 'success' | ||
uses: 'flowfuse/github-actions-workflows/.github/workflows/[email protected]' | ||
with: | ||
package_name: flowfuse-nr-launcher | ||
|
@@ -140,7 +162,7 @@ jobs: | |
package_dependencies: | | ||
@flowfuse/nr-project-nodes=${{ inputs.nr_project_nodes_branch != 'main' && needs.publish_nr_project_nodes.outputs.release_name || 'nightly' }} | ||
@flowfuse/nr-file-nodes=${{ inputs.nr_file_nodes_branch != 'main' && needs.publish_nr_file_nodes.outputs.release_name || 'nightly' }} | ||
@flowfuse/nr-assistant=nightly | ||
@flowfuse/nr-assistant=${{ inputs.nr_assistant_branch != 'main' && needs.publish_nr_assistant.outputs.release_name || 'nightly' }} | ||
secrets: | ||
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,26 +21,3 @@ a restart of the `forge` app is required. | |
After the forge application has restarted, the Node-RED runtimes need to be | ||
updated to leverage these features. As restarting Node-RED might need to be | ||
coordinated, FlowFuse will not automatically restart all instances. | ||
|
||
## Enabling FlowFuse User Authentication for @flowfuse/node-red-dashboard | ||
|
||
Included with the Enterprise licensed FlowFuse is the ability to use | ||
FlowFuse Authentication to control access to Dashboards and to have the | ||
user information passed to the Node-RED Flow. | ||
|
||
This is enabled by installing a Node-RED plugin `@flowfuse/node-red-dashboard-2-user-addon`. | ||
To install this plugin you will require a npm authentication token. To request | ||
one please contact <a href="mailto:[email protected]?subject=Dashboard 2 User addon">[email protected]</a>. | ||
|
||
Once you have been supplied with a authentication token please follow these steps: | ||
|
||
1. Under the Admin Settings page, open the Templates tab and edit the template | ||
2. On the Palette page of the Template settings add the following to the "Node Catalogues" list `https://catalog.flowfuse.com/catalogue.json` | ||
3. In the "NPM configuration file" section you will need to add | ||
``` | ||
//registry.npmjs.org/:_authToken=<npm_auth_token> | ||
``` | ||
replacing `<npm_auth_token>` with the token supplied earlier | ||
4. Click on the "Save changes" button | ||
5. Any existing Node-RED instances will need to be restarted to pick up the changes to the template | ||
6. Once restarted you should be able to install the `@flowfuse/node-red-dashboard-2-user-addon` from the Palette Manage menu in the Node-RED instance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.