I am an experienced developer Ruby( Sinatra, Event Machine, Wardenetc.), and decided to teach himselfNode.js
Ruby
Sinatra
Event Machine
Warden
Node.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.
Node
Sails.js
NodeBB
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.
role-based authentication
Sails
RBAC
Is it Passportsuitable for this? And if so, do you have any links to examples?
Passport
, Passport Connect, , , cookie, . , Express/Connect . (, Redis Mongo) , , . , cookie .
Connect
Express
. Passport open-source OAuth2, ( Passport OAuth 2) , . , . , , ( node), - .
( , , . OpenID Google , Passport Google .)