Node-RED 系列(7)-- Oauth/OpenID based authentication with Id4

Securing Node-RED

OAuth/OpenID based authentication with Id4

To use an external authentication source, Node-RED can take use a wide range of the strategies provided by Passport.

Steps as below:

  1. In the node-red installation host, install passport-oauth2 module:


    image.png
  2. In your Id4, add new client and remember set the "Client Secret" and add "authorization_code" as allowed grant type

    • ClientID
    • ClientSecret
    • Allowed Grant type (authorization_code)
    • redirect url
  3. Then add/modify the following in your settings.js


    image.png
  4. Results as below


    image.png

Hope this can help you.

你可能感兴趣的:(Node-RED 系列(7)-- Oauth/OpenID based authentication with Id4)