Giter Site home page Giter Site logo

node-red-obs-websocket-auth's Introduction

OBS Websoket Authentication in Node-RED

This flow allows you to securize your communication between Node-RED and OBS Websocket.

Authentication with OBS Websocket is a bit messy. You need a specific flow to establish a secure channel. It is not really intuitive and took me a few hours to understand and implement. This flow is the result.

Installation

OBS Setup

First, you need to activate authentication in OBS Websocket :

  1. In OBS : Tools Menu > Websocket Server Settings
  2. Check "Enable authentication" and add a password

Node-RED Setup

To ensure a good security, you're going to need the "node-red-contrib-credentials" palette.

  1. Open Menu > Manage palette
  2. Search for "node-red-contrib-credentials" and install

Then, copy the content from the flow.json file in this repository and import it in Node-RED :

  1. Open Menu > Import
  2. Copy/Paste the content of the JSON file above
  3. You should end up with this :

Flow

  1. Triple click on the "pass" node to open its settings and put the password you created in the OBS setup in the "private" field:

Password

Restart all your flows. After a few seconds, you should see "Authenticated" under the "Auth Status" node.

Important note

If OBS is started after Node-RED, you will not be authenticated automatically. A button is provided in the flow to trigger a new authentication. A fallback flow is also provided but the first message than you send will not be accepted by OBS.

node-red-obs-websocket-auth's People

Contributors

xurei avatar

Stargazers

tainalo2 avatar Neodyme avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.