PI Web API Settings - langanjp/PI-NodeRED GitHub Wiki
Enable Anonymous and Basic Authentication
- Select the Configuration database
- Under Elements, Select OSIsoft --> PI Web API --> Your server name --> System configuration
- Double click the value box of AuthenticationMethods
- Add / verify Anonymous and Basic Values
- Add / verify Anonymous and Basic Values
- Be sure to check in any changes. This change is immediate after check-in and does not require a restart.
Anonymous Access Warning:
- Anonymous authentication is only used for one example in this tutorial (websockets). The anonymous access requirement is due to limitations in the Node-RED websocket node. This websocket example is put in to demonstrate different web communication protocols. Until the Node-RED limitations are improved, you may want to limit this functionality to learning purposes only.
- If you want to continue to use the websocket functionality (and therefore need anonymous authentication), it is recommended to set up a separate PI Web API server that is running as an account that has only the access to what is required. Even if read access restrictions are not an issue, it is recommended that the PI Web API setting for DisableWrites to be set to true to not allow anonymous write access.