Greenfields project using Sails.js and NodeBB - Passport suitable for single sign-on?

I am an experienced developer Ruby( Sinatra, Event Machine, Wardenetc.), and decided to teach himselfNode.js

I have written enough Nodenow to feel very comfortable with this, and now I feel a little more ambitious. I would like to connect a simple application Sails.jsand forum built with help NodeBBso that my users can subscribe to one and automatically subscribe to the other.

I want these users to have role-based authenticationaccess to various parts of the application Sails, as well as to the forum, so they would need to share a common model RBAC.

Is it Passportsuitable for this? And if so, do you have any links to examples?

+3
source share
1 answer

, Passport Connect, , , cookie, . , Express/Connect . (, Redis Mongo) , , . , cookie .

. Passport open-source OAuth2, ( Passport OAuth 2) , . , . , , ( node), - .

( , , . OpenID Google , Passport Google .)

+3

All Articles