V
V
Vlad Timofeev2014-11-09 20:30:14
Node.js
Vlad Timofeev, 2014-11-09 20:30:14

What to use for authorization on Node.js?

Good day :) Started learning node.js. I want to make authorization from the database (mongoose) on it. How to implement it?

  1. Is there a special funds for this? I've heard of Passport, but still not sure about security. || Or do you have to cut everything yourself?
  2. Where to go ? :D Give direction
  3. There are a bunch of articles about this. BUT many are over a year old. So these articles are irrelevant. Are there new "guides" for different applications on Node.js
Thank you for attention.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Drozdov, 2014-11-09
@bagzon

I used https://github.com/jaredhanson/passport here is an article if anything habrahabr.ru/post/201206 .
Security level, do not worry)

B
Boniface, 2014-11-09
@Boniface

I usually use OAuth2. For node take here

F
Fadi Haj, 2014-11-10
@deleted-fdhaj

EveryAuth , Passport .

J
John, 2014-11-28
Doe

So I will say, if you want a normal site, take a php or php framework, and forget this shit like NodeJs for at least 10 years, because if you implement something in it, you will soon turn gray. I tried many options for implementing user authorization, only one works, this is passport, most modules simply give an error as they are very outdated, the only normal thing on the node is socket.io, it is good for chat, the node is not good for anything else. No matter what anyone says, NodeJs is complete crap.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question