Authentication and Authorization With Flask-Login

Authentication and Authorization With Flask-Login

Pretty Printed

5 лет назад

100,785 Просмотров

In this video I show you how to use Flask-Login to add authentication and authorization to your Flask apps.

Need one-on-one help with your project? I can help through my coaching program. Learn more here: https://prettyprinted.com/coaching

Join my free course on the basics of Flask-SQLAlchemy: https://prettyprinted.com/flasksql

Get the code here: https://prettyprinted.com/l/IT3

Twitter: https://twitter.com/pretty_printed
Github: https://github.com/prettyprinted

Тэги:

#flask-login #flask_auth #authorization #authentication #programming #python_tutorial #flask_login
Ссылки и html тэги не поддерживаются


Комментарии:

@sirguroz
@sirguroz - 25.05.2023 01:33

Registration no?

Ответить
@muhammadammad330
@muhammadammad330 - 13.11.2022 06:57

Do you have any video on role base authorization in flask?

Ответить
@DanOhCaptainDaniel
@DanOhCaptainDaniel - 31.10.2022 07:59

how did you do the css for this, where can I find this in your github?

Ответить
@iKunj026
@iKunj026 - 14.08.2022 06:59

Hi,
How can i deploy this page using heroku
And gunicorn ?

Ответить
@rafarakowskidzonybt60
@rafarakowskidzonybt60 - 31.05.2022 07:32

There is only authentication, authorization is not.

Ответить
@makedifference4548
@makedifference4548 - 05.05.2022 07:59

is was great learning.. do you have video where user is added by admin and need to login with correct credential provided by admin. later on where user can reset the password

Ответить
@sumeetsharma4283
@sumeetsharma4283 - 25.03.2022 02:29

Hard to follow

Ответить
@sushaanpatel1337
@sushaanpatel1337 - 11.05.2021 20:42

damn this dude helped me alot

Ответить
@sgr2683
@sgr2683 - 16.02.2021 13:30

🌟❗if you are facing error in running flask app.
Use set in place of export command.

As export is only valid for Unix shells.
use set for windows.

Ответить
@000djw000
@000djw000 - 09.02.2021 23:50

Really nice video, but I keep thinking Kermit is teaching me python! :-)

Ответить
@baumjohannable
@baumjohannable - 07.02.2021 19:04

Is it save to send your password in plain text like this in form that is being pushed?

Ответить
@constantinewesterink3845
@constantinewesterink3845 - 22.01.2021 21:06

When i run "from project import db, create_app" in the terminal it send me this error:
File "<stdin>", line 1, in <module>
File "project/__init__.py", line 1, in <module>
from flask import Flask
ImportError: No module named flask

How do i fix this?

Ответить
@samargndi
@samargndi - 10.01.2021 12:23

man you said authentication and AUTHORIZATION and there is nothing about authorization.

Ответить
@MrFyce
@MrFyce - 28.10.2020 13:31

how about signup?

Ответить
@cedrickiplimo2991
@cedrickiplimo2991 - 21.10.2020 20:04

@Pretty Printed, if you don't mind, could you do a quick tutorial on how to perform authentication where you have multiple models. Maybe something like Student and Staff

Ответить
@yamkelakutu5707
@yamkelakutu5707 - 24.09.2020 01:33

This is awesome - thanks man for an amazing video 👌🏾

Ответить
@gaborf3168
@gaborf3168 - 21.09.2020 14:38

Too bad I cannot double like this video. You are my hero.

Ответить
@bryanzhu9568
@bryanzhu9568 - 07.09.2020 19:39

This is some great stuff, hope you keep making more.

Ответить
@DilipCM1777
@DilipCM1777 - 05.09.2020 09:56

nice video sir..could u be able to make video on how to authenticate multiple users using loginmanager and flask-bluprints

Ответить
@brianng830
@brianng830 - 26.08.2020 14:49

Anybody get 'flask login module not found' error during Heroku Deployment?

Ответить
@jafd7806
@jafd7806 - 24.08.2020 04:44

With this video and the token jwt one, you earned my sub bro, keep it up

Ответить
@vijaybabaria3253
@vijaybabaria3253 - 23.08.2020 01:33

Thanks for sharing, would it be possible to add Google and Facebook login?

Ответить
@ikhsanrahman9703
@ikhsanrahman9703 - 16.08.2020 12:12

how to use jwt with flask login ?

Ответить
@dcard729
@dcard729 - 12.08.2020 17:35

login?next=%2Fprofile -
Is it safe??

Ответить
@rasimatics
@rasimatics - 06.07.2020 16:04

Thank you very much :)

Ответить
@abrarahmed7549
@abrarahmed7549 - 04.07.2020 16:01

Hello Anthony..
Flask security login not working with nginx server

Ответить
@AshokKumar-fo5gw
@AshokKumar-fo5gw - 18.06.2020 14:46

where is authorization in this example?

Ответить
@siddheshshivgan6870
@siddheshshivgan6870 - 09.06.2020 19:59

Thanks man, This helped a lot!!

Ответить
@sarojrai8716
@sarojrai8716 - 19.04.2020 15:44

kindly provide github source code link for the same

Ответить
@lucasgomez3531
@lucasgomez3531 - 15.04.2020 01:33

One question: How should I run this app if I am using pipenv as environment?

Ответить
@yashchhatre7339
@yashchhatre7339 - 08.04.2020 23:03

Hey man I am super late, but I had a question everytime I try to import something through terminal it doesn't work. For example, you said to "from project import db", however my thing tells me a module named db doesn't exist. any ideas on how to solve?

Ответить
@yogeshwarangovindarajan8817
@yogeshwarangovindarajan8817 - 23.03.2020 19:41

how to download your code from github?

Ответить
@taylorjewell5038
@taylorjewell5038 - 08.03.2020 07:35

where is the create_app function called?

Ответить
@birindwagrace3287
@birindwagrace3287 - 22.02.2020 12:24

Hi, when i try to run a got this error: flask.cli.NoAppException: Could not import "flaskLogin.flaskLogin". cause my project name is flaskLogin, i've runed export FLASK_APP=flaskLogin

Ответить
@azigarimbata2625
@azigarimbata2625 - 31.12.2019 11:11

Brother, simply you're the best!

Ответить
@islahulkhozani5858
@islahulkhozani5858 - 19.12.2019 02:03

so cool

Ответить
@jashjasani5045
@jashjasani5045 - 08.12.2019 20:18

Hey Anthony, I really love your videos and they have cleared a lot of concepts for me! Can you please help me with the same task using PostgreSQL as the database?

Ответить
@joaomatos9382
@joaomatos9382 - 29.11.2019 19:22

Hi, thank you for this tutorial. I'm trying to build a login page with an username, password and department fields.
The app has an User and Department model.
Now it needs to know each department the user logged into, for it to be able to render the right template, etc...

I've tried storing it in the g variable, using context processors but it did not work as I expected.

I needed something like the flask-login package where I would have current_department and be able to access this value from a template or a view function. How should I do this?

Ответить
@abdelazizsharaf7305
@abdelazizsharaf7305 - 22.11.2019 20:16

Greet thanks is actually not enough

Ответить
@sunlord0327
@sunlord0327 - 13.11.2019 08:41

For mine, it says that the object 'User' has no attribute 'query'

Ответить
@aekanshupanchal
@aekanshupanchal - 12.11.2019 21:11

Very nice tutorial it removes all confusion as i first seen video from two year back and now I have a better approch

Ответить
@niwanshumaheshwari4534
@niwanshumaheshwari4534 - 07.11.2019 11:54

i get internal error 500 when i click on signup button a , please someone help

Ответить