When I tried to use Nextcloud as an Auth Provider for Node-RED, I was not able to find good documentation on this topic, so I am summarizing my experience here. This was tested with Nextcloud 29.0.9 and Node-RED v4.0.5.
- Create a new OAuth client in your Nextcloud by going to
Administration Settings -> Security
(pick the lower menu option under the Administration title – not your personal Security settings). Scroll down to OAuth 2.0 clients and add a new one (pick a descriptive name and put down the URL of your Node-RED instance followed by/auth/strategy/callback
(e.g.https://node-red.mydomain.de/auth/strategy/callback
)- Add a new client and pick a descriptive title
- For
Redirection URI
put down the URL of your Node-RED instance followed by/auth/strategy/callback
(e.g.https://node-red.mydomain.de/auth/strategy/callback
)
- Write down the values for
Client Identifier
andSecret key
somewhere