node-red-contrib-auth-openid
v1.0.4
Published
"# node-red-contrib-auth-openid"
Downloads
2
Readme
"# node-red-contrib-auth-openid"
Install using npm
npm i node-red-contrib-auth-openid
declare module using either
var openidauth = require("node-red-contrib-auth-openid");
or using typescript
import * as openidauth from "node-red-contrib-auth-openid";
then initilize
settings.adminAuth = new openidauth.noderedcontribauthopenid("http://localhost:1880/", "blahblah.apps.googleusercontent.com", "secret",
(profile:string | any, done:any)=> {
profile.permissions = "read";
profile.permissions = "*";
done(profile);
});