Dude... thank you so much for this. Concise and perfectly demonstrated. I looked at about eight different articles prior to finding your video. I wish I'd found this first. I could've saved a day of my life.
@vuka9514 жыл бұрын
Glad it helped!
@anupamchand36902 жыл бұрын
After getting confused with all the authlib documentation, I found this 11min video so easy to follow and implement. Thanks!
@_Nocturnal.3 жыл бұрын
At the beginning you were jumping a lot and was hard to understand what you were doing, but later it all became clear. Great video, great explanation well done!
@geraldl71724 жыл бұрын
Finally what I was looking for. Thank you. Good pace
@vuka9514 жыл бұрын
Glad it helped!
@alexanderslessor4104 жыл бұрын
This is exactly what i was looking for
@karlduckett4 жыл бұрын
Awesome tutorial - I disagree with the other comment - the pacing was fine. Great content easy to follow I have subscribed! Can I recommend a facebook 2020 login oauth tutorial. The only one I could find on KZbin was in mandarin :(
@vuka9514 жыл бұрын
Thanks! I mean its borderline the same as for google only like very slight differences im not sure if it warrants a separate video 🤔
@karlduckett4 жыл бұрын
@@vuka951 True - the coding side is virtually identical - however, i'm having difficulty with the Facebook app creation section (localhost vs https vs redirect URIs) driving me a little insane. Bahaha - either way, I've subbed with notify bell on so I'll keep an eye on your uploads in case decide you tackle it :)
@vladgaraba40224 жыл бұрын
@@vuka951 It definitely is. And it's more views for you too. Think about it as someone who is searching to integrate primarily with facebook rather than google
@Arthur-hi3tc2 жыл бұрын
I got a error: missing "jwks_uri" in metadata, how do i solve this?
@dipendrasingh6878 Жыл бұрын
I am getting the same error, How can I resolve ? Anyone here who has solved this issue?
@niltonmedeiros93133 жыл бұрын
Perfect, that's what I was looking for! Thank you very much!
@oscarwang79204 жыл бұрын
Thanks a lot man ! and what database would you recommend for beginner to use with Flask application (combining with this type of OAuth login and normal register/login on the Flask site )?
@vuka9514 жыл бұрын
Easiest to use/set up is sqlite3 i got a video up with bcrypt and storing stuff in it using SQLalchemy. For an actual project you would prob use MySQL/PostgreSQL or MongoDB.
@Oratte4 жыл бұрын
Awesome tutorial! =) Thanks!
@vuka9514 жыл бұрын
Glad it helped!
@smrutirekhabiswal94493 жыл бұрын
This is exactly what I was looking for. Thank you😊
@techtinker39493 жыл бұрын
great video and I'm new to this, so I would like to see how you can capture some of the callback information and get that store in DB (say Mongo). Also do I need to generate a JWT as part the register/login steps or just use the oauth session. thanks
@sheksbear Жыл бұрын
Thank you this is precise and simple
@pavelhegler69733 жыл бұрын
Everything I have ever looked for. Wish I found this 2 weeks ago
@Jester88904 жыл бұрын
Great video, I implemented this in Python3, much easier than reading the docs straight from Google. One question, what was the alternative method you mentioned would take 20 minutes when you implemented session['email'] = user_info['email']. Is this just implementing a way to store this in a database?
@vuka9514 жыл бұрын
Its using the google user_info you get, to create (and store)/login (and select) and then put that into the cookie. It wouldn't actually take 20 min to implement just making a video on it would take take that long since i'd have to explain a lot about db stuff and I wasn't really up for doing that. Also Thanks glad it was helpful and saved you time
@GabrielaSantos-hi3el2 жыл бұрын
I loved it !!!! thank you very much !!!
@franciscovelazquez43524 жыл бұрын
For the key you can use secrets library. Thanks for the video.
@vuka9514 жыл бұрын
You're welcome!
@santiagoguillen64172 жыл бұрын
Hello, how are you, the video is very good, I would like to know if what you do in the video can be done with Outlook?
@Salehalanazi-73 жыл бұрын
No bullshit. better and more secure than the udacity course...
@daniyaldehleh82534 жыл бұрын
Hi There, First of all, thanks for the great content. I would just like to know, once I turned the app to RESTful, am I permitted to make posts/put requests to users' profiles? if so, how and what credentials do I need?
@GerardoMares4 жыл бұрын
Nice, great video
@vuka9514 жыл бұрын
Glad you enjoyed it
@akhileshchander53074 жыл бұрын
perfect
@miguelfernandes6572 жыл бұрын
Perfect, thanks!
@vaibhavbnagrale85785 ай бұрын
Perfect video less code and woks totally fine.
@michealhall77763 жыл бұрын
If anyone is wondering that is not how you work with the flask session object session.get('email') #> None is the default if not found. session.pop('email', None) #> None is needs to be defined unless you wanted to raise an error session.clear() #> Deletes all session information. This is how you create a strong secret_key openssl rand -hex 32 store it as a env outside the project folder so you don't submit secret to git export SECRET_KEY="....Place secret here...." from os import getenv SECRET_KEY = getenv('SECRET_KEY')
@anindyabhattacharya4878 Жыл бұрын
I am getting error invalid client. I try using flask_oauth library with same creds, I get success. But with authlib I am getting invalid client exception in authorize_access_token method. Need help. Thanks in advance
@thiago16422 жыл бұрын
nice and clean
@mahelnapo83854 жыл бұрын
How do I check what is within the json data. I'll like to be able to print the name of the person logged in onto an existing html page. Would a double curly bracket work?
@bawa11694 жыл бұрын
Hi @vuka I have a doubt, I am able to create new credentials on console.developers.google.com It's asking Authorised domains , Application Homepage link , Application Privacy Policy link . What should I put in these catagories
@vuka9514 жыл бұрын
First of all you should be going to: Create Credentials => oAuth client ID => Application type => Web Application => Create As for those categories if you can ignore them and just dont put anything if possible. But since I don't get them when creating new credentials you might be creating a different thing. It should ask you for "Authorized redirect URIs" that should be as is it in the video localhost:5000/..etc And it should ask you for: "Authorized JavaScript origins" that should be also wherever your frontend is hosted localhost:5000 (in the video) Hope some of this helps, GL!
@vuka9514 жыл бұрын
I know its a bit late(a week later) but here you go: kzbin.info/www/bejne/roPQl3WDjrGXaNk On a fresh account literally how to get the credentials
@ankushdua86614 жыл бұрын
i need an advice from you please so i have my flask app login page already where user can either login via email and password or via google except that i havent implemented the google oauth part yet so that button on login page redirects to nothing rn my question is do i need to create another route for google with oauth or is is there a way to implement oauth in the existing login page? and one more question --- how do i extract the user information like email and name and other activity by the user to be stored in the database for next time the user logs in with google ofcourse thank you in advance
@aibasics72062 жыл бұрын
RuntimeError: Missing "jwks_uri" in metadata.......getting this error plz help
@theajaypraj5338 Жыл бұрын
same ...you solved? tell me i need help
@nitinupadhyay91933 жыл бұрын
Brilliant
@joakimjohansson82744 жыл бұрын
Great video! Could you build upon this and show how to work with Google Services like Google Drive with the Oauth credentials? Take care!
@vuka9514 жыл бұрын
Thanks! Maybe in the future 😉
@nikitabharane10223 жыл бұрын
How to login zoho crm using OAUTH2.0? Or python? Do you know about it if yes please let me know.
@noah-44823 жыл бұрын
Thank you
@utkarshsinha58384 жыл бұрын
I tried creating a facebook login by following this video. The login part seems to work but as soon as it redirects to authorization it throws the error "KeyError: 'email'" . Are there any other changes to be made as well?
@vuka9514 жыл бұрын
Yes you do have to change the code a bit to make it work with Facebook. You can find all the info on the authlib docs: docs.authlib.org/en/stable/
@mgreek312 жыл бұрын
nice
@anirudhgrack75602 жыл бұрын
Not working for me getting RuntimeError: ‘Missing “jwk_uri” in metadata’
@willcline94042 жыл бұрын
me too
@terarara1892 жыл бұрын
@@willcline9404 me 3
@theajaypraj5338 Жыл бұрын
me 4
@MichaelSmith-tw6yxАй бұрын
me 5
@zaheerkhan80974 жыл бұрын
Nice video. Plz make video on cross origin request using flask
@vuka9514 жыл бұрын
If you mean like enabling cors (cross origin requests) there already is one. kzbin.info/www/bejne/hX2ao6qdm7arl6M
@zaheerkhan80974 жыл бұрын
@@vuka951 Nice !
@viktorkuzmanov30863 жыл бұрын
on 8:22 when i run my app i get Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
@Ruypbf993 жыл бұрын
Same problem. I found out I had a misstype in my code, you probably have the same
@leminos61193 жыл бұрын
How to modify this code to use with blueprint because it is throwing several errors
@willcline94042 жыл бұрын
Getting this error: " RuntimeError('Missing "jwks_uri" in metadata') RuntimeError: Missing "jwks_uri" in metadata". Anyone dealt with this?
@macvisys7127 Жыл бұрын
same error ia malso getting
@theajaypraj5338 Жыл бұрын
Missing "jwks_uri" in metadata /?
@CodeTerra3 жыл бұрын
How to access user Google Drive for modification via Google login in Flask
@asishmishra16054 жыл бұрын
after login to google,i want to check if he is already present in database or not.if not than i will log him out ,if yes i will redirect him to welcome page.How to do this.
@alvingultiano5192 жыл бұрын
im having an error called "ModuleNotFoundError: No module named 'authlib.integrations" can you make a new video for googleOauth
@mgreek312 жыл бұрын
pip install requests
@kiranthakur74633 жыл бұрын
Bro You did fantastic work. I have issue with 'auth_decorators' library... How to install it.
@anonimes40052 жыл бұрын
just put the .py file in the same directory
@EstebanRigoni4 жыл бұрын
How can I check if the user is still connected after n minutes? Just verifying the session cookie? Thank you
@vuka9514 жыл бұрын
You can check if the user is logged in only when they send a request
@mediatwinkleTV Жыл бұрын
This is how you earn a subscriber :)
@shardulkulkarni10084 жыл бұрын
Nit !!!! simplest code !
@dibri2 жыл бұрын
where can I find other scopes
@utkarshsinha58384 жыл бұрын
Will 'userinfo' be valid for facebook login as well?
@vuka9514 жыл бұрын
I don't know for sure haven't done Facebook login with authlib. I suggest looking trough the docs there is prob. info about that there: docs.authlib.org/en/stable/
@hrishavsahu94852 жыл бұрын
can you make a video for the same using fastapi
@shivrajpatil48694 жыл бұрын
how can I send mail using acquired token?
@nonamearmyid504 жыл бұрын
how to get client name info from facebook using aouth flask? please!
@nandhiniram43643 жыл бұрын
i need source code of flask yahoo login?
@terarara1892 жыл бұрын
stuck in error after login
@penguin01238 ай бұрын
Hi @Vuka and buddies. When I try Login route I got this --> Access blocked: This app’s request is invalid Error 400: redirect_uri_mismatch Please help
@umerwazir28064 жыл бұрын
When getting user email in user_info, I get error of " KeyError: 'email' " ?