In this quick tutorial, we will cover Working with the Check Permission Rights Node in Run-Time Mode. In this tutorial, we’ll create a flow containing the Check Effective Permission Rights Node.
In this video we will cover:
Prerequisite
After watching Working with the Check Permission Rights Node in Run-Time Mode, feel free to watch the next video, Working with the Check Permission Rights Node in Interactive Mode, to further expand your knowledge.
Subscribe to our channel for more Bitcoin Blockchain building videos! https://www.youtube.com/c/BlockchainofThings
Links from this video for easy access:
To sign up for your free account, head to our website www.blockchainofthings.com.
Join our community forum for the quickest response time to all your questions and concerns. This forum is our customer support. https://forum.blockchainofthings.com/
[Music]
Hi, this is Claire for Blockchain of Things.
In this tutorial, we’ll create a flow containing the Check Effective Permission Rights Node.
If you don’t know what a Check Effective Permission Rights Node is,
make sure you check out the previous video,
titled “Understanding the Check Effective Permission Rights Node”.
Let’s get started!
Drag a Check Effective Permission Rights Node into your workspace.
Double-click it to display its properties slide-out panel.
On the device drop-down field, choose your Catenis Virtual Device.
This should be the device for which you are checking its permissions,
also called the Controlling Device.
Click on the event drop-down menu and then select the event for which you wish to receive event permissions rights for.
Wire this node, to a Debug Node, if you wish to see the output of the node printed on the Debug Sidebar.
Otherwise, the output from this node can be passed to another node on this flow.
Next, drag-and-drop an Inject Node into the Node-RED workspace.
Wire the Inject Node to the Check Effective Permissions Right Node.
Then, double-click the Inject Node to open its properties slide-out panel.
Alter the information in the Inject Nodes properties slide-out panel by
selecting the drop-down payload field,
and choosing the string type.
Enter the Permission Event type in the blank field,
such as “Receive Message”, or ‘Disclose Main Props”.
Click the ok button.
Click the deploy button.
Now, let’s test the flow!
Click the button on the left of the Inject Node
to send the input from the Inject Node through the flow.
The Debug Sidebar should display the returned JSON object
containing the API call results to the right side of the workspace.
The result will display what permissions are set for that given event.
Good job!
Now that you know how to use this node in RunTime Mode,
it’s time to learn how to use it in Interactive Mode.
[Music]