4

I'm going to be building a node app using Express/Passport and need to have in place a Group/User management system with roles and privileges. Rather than rolling my own I would prefer to use something that already exists and has been tested etc, any information would be great.

Example:

Company A - Group Person 1 - User (role admin) Person 2 - User (role user) Person 3 - User (role user)

Company B - Group Person 1 - User (role Admin) Person 2 - User - (role editor)

Any help, greatly appreciated!

Thanks

Jamie
  • 1,004
  • 1
  • 14
  • 32

1 Answers1

3

You could go with Google Sign-In for your user management (at least the login portion of it). However, Google Sign-In doesn't provide a way of managing roles and groups. You'll have to write that yourself.

I built a solution that you could try. It's free for developers and production uses for up to 50 users. It's called Passport (I know it has the same name as the Node library) and the website for it is https://www.inversoft.com/products/user-management-sso. It provides most of the user management features you need like:

  • Role based permissions
  • Login
  • Registration

Right now it doesn't support groups, but I could probably add that for you if you need it. It also provides features you probably need, but don't have the time to write. These usually include:

  • Login tracking
  • Reporting (active users, registration and login reports)
  • Emailing users (using FreeMarker templates)
  • Localization
  • Single sign-on via OAuth
  • And a bunch more

Passport is pretty simple to install and get working. It uses a RESTful JSON API and you can install virtually anywhere using RPMs, DEBs, AMIs (for Amazon), ZIPs or Docker images.

On the flip-side, if you need an open source solution, I would suggest you check out CAS. CAS requires a bit more work to install and integrate with. You'll have to code a lot more by hand, but it is a good open source solution.

voidmain
  • 1,625
  • 1
  • 14
  • 14
  • That's a great response, thank you so much! I'll be sure to take a look at this first thing Monday when I'm back in the office! – Jamie Apr 15 '16 at 21:32
  • Glad I could help. Let me know if you need anything from me. – voidmain Apr 19 '16 at 22:13