Node.js equivalent for Devise gem

1,203 views
Skip to first unread message

Ian Petzer

unread,
Aug 8, 2013, 2:26:27 AM8/8/13
to cape-town-r...@googlegroups.com, nod...@googlegroups.com
Hi all,

I was wondering if anyone had any recommendations for a Node.js library equivalent to the Devise gem?

Basically I'm looking for an NPM module that would supply:
Authorisation of Users
Roles based Authentication for their actions
Built in support for Password resets

I know the Node community is big on rolling your own stuff but these are pretty standard requirements for any project.  

I've looked at passport.js which offers Authentication and Authorisation hooks.. But it would be nice to have some of the other basics built in.

Ian

Johann du Toit

unread,
Aug 8, 2013, 2:30:00 AM8/8/13
to nod...@googlegroups.com
Good question. Quite like rolling my own but have used EveryAuth (https://github.com/bnoguchi/everyauth) in the past with some success. It includes a few callbacks so you can do actions based on the actions.

Also see https://github.com/joyent/node/wiki/modules#wiki-middleware if anything strikes your fancy ?

But anyone know something better ?


--
You received this message because you are subscribed to the Google Groups "Node Cape Town" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodecpt+u...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Visit this group at http://groups.google.com/group/nodecpt.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Johann du Toit - www.johanndutoit.net

Adrian Rossouw

unread,
Aug 8, 2013, 2:39:16 AM8/8/13
to nod...@googlegroups.com

On 08 Aug 2013, at 8:30 AM, Johann du Toit <exx...@gmail.com> wrote:

Good question. Quite like rolling my own but have used EveryAuth (https://github.com/bnoguchi/everyauth) in the past with some success. It includes a few callbacks so you can do actions based on the actions.

Also see https://github.com/joyent/node/wiki/modules#wiki-middleware if anything strikes your fancy ?

But anyone know something better ?

without a doubt passportjs is the one true authentication layer for node.js

there is nothing else that is nearly as simple and beautifully abstracted.

Adrian Rossouw

unread,
Aug 8, 2013, 2:40:44 AM8/8/13
to nod...@googlegroups.com

On 08 Aug 2013, at 8:26 AM, Ian Petzer <ianp...@gmail.com> wrote:

Authorisation of Users
Roles based Authentication for their actions
Built in support for Password resets

node modules dont work that way.

you will get maybe 1 out of those in a module.
everything else would be out of scope.

Adrian Rossouw

unread,
Aug 8, 2013, 2:51:34 AM8/8/13
to nod...@googlegroups.com
On 08 Aug 2013, at 8:26 AM, Ian Petzer <ianp...@gmail.com> wrote:

Authorisation of Users
passport.js is the best. really.

Roles based Authentication for their actions
seems to be the most widely used.

Built in support for Password resets
nothing comes to mind, as this is reeeeaalll application specific.
this assumes users even have passwords, or email addresses, and
aren't authenticated with any of the hundreds of identity providers.


personally, i will do everything humanly possible to avoid having
to ever send email to anyone from one of my applications.

my recommendation is to find a way to make it not your problem =)


Ian Petzer

unread,
Aug 8, 2013, 3:08:33 AM8/8/13
to nod...@googlegroups.com
Awesome.. Thanks Adrian... Thanks Johann


Reply all
Reply to author
Forward
0 new messages