0.0.4 • Published 7 months ago

node-red-contrib-auth-oidc v0.0.4

Weekly downloads
38
License
Apache-2.0
Repository
github
Last release
7 months ago

node-red-contrib-auth-oidc

Node-RED node to use OpenID Connect with HTTP input nodes.

Screenshot

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-auth-oidc

Usage

You have to configure the node by setting the discovery URL of your OpenID Connect provider.

Examples:

ProviderDiscovery URL
Googlehttps://accounts.google.com/.well-known/openid-configuration
Microsofthttps://login.windows.net/common/.well-known/openid-configuration
Salesforcehttps://login.salesforce.com/.well-known/openid-configuration
Oktahttps://YOUR_SUB_DOMAIN.okta.com/.well-known/openid-configuration
Auth0https://YOUR_SUB_DOMAIN.auth0.com/.well-known/openid-configuration
Keycloakhttps://YOUR_DOMAIN/auth/realms/YOUR_REALM_NAME/.well-known/openid-configuration

This node extract and validate the access token from HTTP headers (Authorization: Bearer XXX).

Decoded token (JWT) is stored into the message property: msg.access_token.