Skip to content

Assign roles to users and restrict command access in other scripts

Notifications You must be signed in to change notification settings

liammac/hubot-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubot: hubot-auth

Build Status

Assign roles to users and restrict command access in other scripts.

See src/auth.coffee for full documentation.

Installation

Add hubot-auth to your package.json file:

npm install --save hubot-auth

Add hubot-auth to your external-scripts.json:

["hubot-auth"]

Run npm install

Sample Interaction

user1>> hubot user2 has jester role
hubot>> OK, user2 has the jester role.

HUBOT_AUTH_ROLES

This can be used to give a default set of roles and must be used to set the admin role.

HUBOT_AUTH_ROLES="admin=U12345678 mod=U87654321,U67856745"

About

Assign roles to users and restrict command access in other scripts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 88.7%
  • JavaScript 7.7%
  • Shell 3.6%