Closed cecilia-sanare closed 8 years ago
Nice! Any way we could easily make this backward compat so that it's not going to break hubot-auth for everyone using the current method? If we don't feel like being empathetic to those people, we could just do a major version bump next release, I suppose :)
It still supports using HUBOT_AUTH_ADMIN, it just will output a warning letting developers know its deprecated.
ping @patcon
Released in v1.3.0! Thanks! :fireworks:
I have set the environment variable properly bu it fails with this error:
ERROR Unable to load /opt/bot/node_modules/hubot-auth/src/auth: TypeError: Cannot read property '0' of null
at module.exports (/opt/bot/node_modules/hubot-auth/src/auth.coffee:48:36,
Ah, shoot, sorry that it's giving you trouble @rambo45. I think you'll always have better luck getting a response from someone if you open a new issue. Maintainers usually like issues to be about one thing at a time :)
I think I ran into similar problems trying to implement a similar feature. I tried to append role info to the existing hubot users, but I think it got overwritten when hubot connected to slack. I ended up creating my own auth plugin that uses hubot-auth but stores roles in a separate dictionary in the brain.
Closes #31