This was a very usefull tutorial. Not only I learned about passport, but also I could finally understand some node coding I was not getting right. Thanks! You have a new follower!
Wow, thankyou so much! Sometimes you need a little more than the official documents. With all these libraries out there it's not fun trying to work out what's going on and how to fix resolve bugs so was good to get such a great insight! Thankyou very much, now to round off my authentication!
DevelopMentor1 Hey, just wanted to say that you are really good at screencasts. There are a ton of pretty good tutorials on the net by skilled developers but this was a stand-out video because of how clearly you articulated it and progressed through it. Do you take notes and have a script to follow? I was very impressed by how you didn't flip around too fast and barely made any mistakes! It was a fast way to learn this module. And now, I know Kung Fu. Thank you!
Wonderful, thank you! This video is better than Passport's vague documentation which doesn't mention which part is done by Passport and which part shall be done by you. For example, after reading the documentation, I thought the serialization and deserialization is done by Passport automatically. Very useful video, especially the part on sessions. I appreciate it!
great tutorial. I figure there are a few minor code tweaks here and there due to the updated version available now but fairly easy to get around. I'm having a strange issue though. Around 31:05, once we have setup the basic user authentication system, my server does not seem to respond to the browser requests. The browser just keeps saying waiting for 127.0.0.1. Anybody else having this issue? any possible workaround?
Help please. followed till 31:04 then got an error: .. ode_modules\passport\lib\authenticator.js:52 name = strategy.name; TypeError: Cannot read property 'name' of undefined at Authenticator.use (.. ode_modules\passport\lib\authenticator.js:52:20)
At video 37.32 , I added the node 1st callback parameter as null passport.serializeUser(function(user, done){ done(null, user.id); }); passport.deserializeUser(function(id, done){ done(null, { id: id, name: id }); }); Previous it was showing only the username without the 'Hello'. Now it s showing only 'Hello', not displaying the username. But still the Username is not showing !!! And in the console there is no error also in network. What I'm missing ???
If I have a single-page AngularJS app and users authenticate with social strategies, and that app makes a bunch of API calls to my REST API service, how should I secure these API calls? Should I use HTTP strategy for all api.domain.com/ calls?
You mention some times how one shouldn't use cookies in this and that situation, e.g. if it's about machine clients talking to APIs. Do you have a good source to read which talk a bit deeper about best practices when it comes to what authentication methods to use in what situations? Would appreciate it. Great tutorial btw!
I got this working, i was wondering if anyone knew of a tutorial that would help me learn the database part that he did not cover. I have a basic idea on how to do it but i haven't been successful and i think a tutorial would really help. Thanks! (at about 28:00)
Hi everyone ! thank you for this tutorial ! I am sending you all a message because I got an error when i do the 'post' when I log in : the login page is becoming totally white and it is write 'unauthorized' on the top-left corner of the web page, can anyone help me ? thank you bye !
Please give out your slice and source code. I follow each single step of this tutorials but isAuthenticated variable away == false..???. I have no idea why...:(
Tra Phan hey would you be able to solve your issue? isAuthenticated is always false to me too. i would like to see what happened? updated: i think i understood why now..the body-paser, cookier-parser,expressSession in app.use order was not right. expressSession has to be the last one. what a stupid mistake..
so great tutorial, tks so much... if someone want the same example with the database part (MongoDB) here is a github repo github.com/epileftro85/Express-API/tree/api-created
This was a very usefull tutorial. Not only I learned about passport, but also I could finally understand some node coding I was not getting right.
Thanks! You have a new follower!
The best passport tutorial that I've seen so far!
best tutorial on passport i've seen! cheers for taking the time!
first of thanks so much.one of the best tuts for ever me. i learned so much passport and nodejs , express.
Wow, thankyou so much! Sometimes you need a little more than the official documents. With all these libraries out there it's not fun trying to work out what's going on and how to fix resolve bugs so was good to get such a great insight! Thankyou very much, now to round off my authentication!
Awesome demo! Easy to understand, great explanation.
DevelopMentor1 Hey, just wanted to say that you are really good at screencasts. There are a ton of pretty good tutorials on the net by skilled developers but this was a stand-out video because of how clearly you articulated it and progressed through it. Do you take notes and have a script to follow? I was very impressed by how you didn't flip around too fast and barely made any mistakes! It was a fast way to learn this module. And now, I know Kung Fu. Thank you!
Wonderful, thank you! This video is better than Passport's vague documentation which doesn't mention which part is done by Passport and which part shall be done by you. For example, after reading the documentation, I thought the serialization and deserialization is done by Passport automatically. Very useful video, especially the part on sessions. I appreciate it!
great tutorial. I figure there are a few minor code tweaks here and there due to the updated version available now but fairly easy to get around. I'm having a strange issue though. Around 31:05, once we have setup the basic user authentication system, my server does not seem to respond to the browser requests. The browser just keeps saying waiting for 127.0.0.1. Anybody else having this issue? any possible workaround?
Great tutorial! Exactly what I needed in my app.
hey which sublime theme are u using?
Help please.
followed till 31:04
then got an error:
..
ode_modules\passport\lib\authenticator.js:52
name = strategy.name;
TypeError: Cannot read property 'name' of undefined at Authenticator.use (..
ode_modules\passport\lib\authenticator.js:52:20)
fixed. ^_^
My mistake
At video 37.32 , I added the node 1st callback parameter as null
passport.serializeUser(function(user, done){
done(null, user.id);
});
passport.deserializeUser(function(id, done){
done(null, { id: id, name: id });
});
Previous it was showing only the username without the 'Hello'. Now it s showing only 'Hello', not displaying the username.
But still the Username is not showing !!! And in the console there is no error also in network. What I'm missing ???
+Kiran Roy, need to restart you server
+Михаил Ламоткин I did. Nothing changes...showing same result.
why do u have to serialize and deserialize the user?
If you could use angular here with node.js It would make a great tutorials as lot of us don't using swig/jade/ejs as view engine.
I get a bad request and no a serialize error :( I don't know what happens
Great video! Do you know if Passport can deal with NONCE negotiations?
If I have a single-page AngularJS app and users authenticate with social strategies, and that app makes a bunch of API calls to my REST API service, how should I secure these API calls? Should I use HTTP strategy for all api.domain.com/ calls?
could you update the link for the code in the desc or in comments
Thanks! This tutorial is really helpful :)
Thank you for making this video! Can we have access to the demo code and slides?
Very nice and detailed tutorial. Thank you very much :-)
Great tutorial - I'm looking forward to more on Node.js. :-)
You mention some times how one shouldn't use cookies in this and that situation, e.g. if it's about machine clients talking to APIs. Do you have a good source to read which talk a bit deeper about best practices when it comes to what authentication methods to use in what situations? Would appreciate it. Great tutorial btw!
Great tutorial, thank you!
I got this working, i was wondering if anyone knew of a tutorial that would help me learn the database part that he did not cover. I have a basic idea on how to do it but i haven't been successful and i think a tutorial would really help. Thanks!
(at about 28:00)
+Zach Konon hey this can help if you want it with mysql database
yifeed.com/passportjs-mysql-expressjs-authentication.html
Thank you! This is just the type of thing i am looking for.
great tutorial, really helpful.
Super helpful, thank you very much for doing this.
this was super useful :D thank you
With version 3 of Express not work (problem with request "bad request"). You must have version 4 of express. Excuse me for my English :-)
thanks, helped me alot!
the next, mongoose and uses multiple logins
Thank you so much for the effort!!!
Please do a similar tutorial on mongoose and passport together using redis. Thanks so much
Thank you very much. Very nice tutorial.
Great tutorial.
Awesome! Thanks for sharing this =)
Hi everyone ! thank you for this tutorial ! I am sending you all a message because I got an error when i do the 'post' when I log in : the login page is becoming totally white and it is write 'unauthorized' on the top-left corner of the web page, can anyone help me ? thank you bye !
Great video!
amazing bro, you're awesome! thnx a lot :D
very clear ! Thanks !
Please give out your slice and source code. I follow each single step of this tutorials but isAuthenticated variable away == false..???.
I have no idea why...:(
try isAuthenticated : false
I believe this is the solution
Tra Phan hey would you be able to solve your issue? isAuthenticated is always false to me too. i would like to see what happened?
updated: i think i understood why now..the body-paser, cookier-parser,expressSession in app.use order was not right. expressSession has to be the last one. what a stupid mistake..
ChangChing Chi
which part of this video brings int isAuthenticated?
Very helpful, thanks!
how find this vid is! thank you so much for making a nice tutorial!
Thank you!
Thanks!
Next time do it wth bigger font size of your editor...
source code: github.com/maghidini/passport-demo
"aoeu"? Son of a gun, he uses Dvorak! ;-)
Your name is json
Thanks
AM AM ARMENIA
so great tutorial, tks so much... if someone want the same example with the database part (MongoDB) here is a github repo github.com/epileftro85/Express-API/tree/api-created
I like his sister, Jayda.
Thank you!
Thanks!