OAuth (Passport.js) Tutorial #8 - The Redirect URI

preview_player
Показать описание
----- COURSE LINKS:

---------------------------------------------------------------------------------------------
Other tutorials:

----- NODE.JS TUTORIALS

----- MONGODB TUTORIALS

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

This is brilliant! an hour ago i almost had no clue how to get started with this! Thank you for making those videos man!

bassamry
Автор

You rock net ninja. It was such a simple thing yet the google documentation not making it clear enough confused me so much!

rooneyrokks
Автор

Thank you! Been through SOOO MANY VIDEOS and no one did a great job explaining it aside from you :)

flameprincess
Автор

AMAZING...SIMPLY AMAZING. So clear and precise thank you. There's a great overview article over at dev.to about OAuth that recommends this video. The developer was correct in doing so.

georgebockari
Автор

Error 400: invalid_request
Missing required parameter: redirect_uri

I am getting this error. Can anyone help me with this??

nikhilanand
Автор

There is coding God in youtube whose course are so precise that they never fails.His name is The Net Ninja!

rohitkanchanshaw
Автор


Secure Connection Failed

The connection to localhost:3000 was interrupted while the page was loading.
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

Where could I be possibly wrong. Please help me with this problem? Can't move further without sorting this out :(

ayushporwal
Автор

If you want to declare both profile and email scopes, it has to be a space separated string, not an array. ie:
authRouter.get(
"/google",
passport.authenticate("google", {
scope: "profile email",
successRedirect: "/",
failureRedirect: "/login"
})
);

glimmbo
Автор

Awesome man, thanks! Waiting for the next ones

oinSquares
Автор

we require passport in two different places, one in 'passport-setup.js' and one in 'auth-routes.js'. are these two exactly the same object?

narimanmortezaei
Автор

Great Explanation.One question : const router = require('passport'); ==> Here what if we use a variable instead of const?
var router = require('passport');

sauravshukla
Автор

Had no idea about any of this stuff... Brilliant !!

codedynamics
Автор

Eagerly waiting for the next one. I'm not referring any other tutorials. just being idle until you upload the next :)

bharathravi
Автор

Took me awhile to get it working but man this is awesome.

jacobsmith
Автор

Hi sir . Good bless you for helping us without any cost. Our prayers are with you

arslanali
Автор

Please upload like this regularly, don't give gap

hiteshchoudhary
Автор

I think the API changed or something. I received an error from google saying: Missing required parameter: scope. This is fixed by putting "scope" into the strategy instead of get: passport.use(
new GoogleStrategy({
callbackURL: '/auth/google/redirect',
clientID: keys.google.clientID,
clientSecret: keys.google.clientSecret,
scope: ['profile']
}, () => {
// passport callback function
})
)

DavidJohnson-hbgh
Автор

I feel that I love you! Thank for the best passport tutorial of the universe!

Clandestin
Автор

Great video! Also, would I be doing the same Oauth2 setup process that you're showing in this series when I want to make a Blog Backend REST API that will act as a microservice on my website? [Blog Microservice API + Oauth2] -> [Vue.js Admin Dashboard], and a [Blog Microservice API + Oauth2] -> [ Vue.js Front End Visitor's View]

ewliang
Автор

Consent screen showed only once, then it does not show anymore. I see that network request is made but consent screen screen does not pop up?

omaribo