Тёмный

Intro to Flask-Security 

Pretty Printed
Подписаться 96 тыс.
Просмотров 39 тыс.
50% 1

Flask-Security is a library you can use to handle things like authentication and authorization in your app. In this video I show you how to get started with the Flask-Security library.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/EC8
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
Flask-Security docs: pythonhosted.org/Flask-Security/
Twitter: / pretty_printed
Github: github.com/prettyprinted

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@prettyprinted
@prettyprinted 4 года назад
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
@lator1941
@lator1941 Год назад
Mr Anthony, your contribution to the Flask community is invaluable.
@mxd8
@mxd8 Год назад
can you make one on flask-security-too
@najibfahs2657
@najibfahs2657 3 года назад
I just want to thank you for the time you have put in to make and share these very useful videos. They have helped me speed up my understanding of how many of the Flask extensions work. Your contribution is priceless!
@nullyberd
@nullyberd 3 года назад
Thanks for the really great tutorial, this is so much better than the tutorial on the official docs.
@afelixalves
@afelixalves 2 года назад
Great video! I still mix flask-login, flask-security, flask-principal... I just want to have roles! You really make complex things look easy! Thanks!
@yashsoni5437
@yashsoni5437 4 года назад
Perfect tutorial!
@carnivorouspanda4018
@carnivorouspanda4018 2 года назад
Awesome examples!
@tymothylim6550
@tymothylim6550 3 года назад
Thank you very much for this video :) It was very interesting and educational!
@teclote
@teclote 7 месяцев назад
Very good, thank you.
@dhruvsharma5756
@dhruvsharma5756 6 месяцев назад
Thanks , It was very helpful
@WaldirBorbaJunior
@WaldirBorbaJunior 4 года назад
Amazing video. I loved the content.
@prettyprinted
@prettyprinted 4 года назад
Thanks for watching!
@pietraderdetective8953
@pietraderdetective8953 11 месяцев назад
awesome Sir! you have the best Flask tutorial videos! make some more please..
@prettyprinted
@prettyprinted 11 месяцев назад
Glad you like the videos! Thanks for watching.
@harrythuku628
@harrythuku628 4 года назад
hello. Thank you for this awesome video. could you do one on how to work with Streaming from Templates? I've been working on big data sets and it has been a challenge implementing this concept.
@kishoreandra
@kishoreandra 4 года назад
Anthony would you make a video on avoiding circular import and large projects structure
@prettyprinted
@prettyprinted 4 года назад
I have some videos on project structure. Here's the latest: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MbXEQZZSvzk.html
@Christine-qx5ce
@Christine-qx5ce Год назад
Also I had to do: pip install email_validator
@Achrononmaster
@Achrononmaster 3 года назад
Are the ForeignKey constraints enforced? I'm learning Bottle for now, but thinking of Flask, and learned that for sqlite: execute('PRAGMA foreign_keys=ON;') is needed.'
@vatsalaykhobragade
@vatsalaykhobragade 4 года назад
thank you anthony for the tutorial. BTW its first comment !
@prettyprinted
@prettyprinted 4 года назад
Thanks for watching!
@lars6664
@lars6664 3 года назад
It would be cool if you could do one also on how to assign roles to a user from a dropdown list or something and edit a user. (and as extra request with mongoengine :D )
@naheliegend5222
@naheliegend5222 3 года назад
can you create an __init__ within your models for creating a new entity?
@obobob3185
@obobob3185 4 года назад
I am looking for a flask extension to handle user roles. I have explored flask-user and flask-security. I am new to flask and am struggling to grasp how to create and get roles working, so that users only have access to certain areas of the app. What would you recommend? Do you have any instructional videos on actually getting the roles part working? Thanks
@manashejmadi
@manashejmadi 3 года назад
try flask-login, it has some login manager stuff that does this i believe!
@koreckie4967
@koreckie4967 2 года назад
Add to user model a role and for example if a user login as an admin write current_user.role = 'admin'
@mitchellstephens4228
@mitchellstephens4228 4 года назад
Do you mind showing a video on how to do Role Based Authorization? I have an admin page up, but dont know how to assign roles so that only I would be able to access it, and everyone else cant.
@prettyprinted
@prettyprinted 4 года назад
When I make more Flask-Security videos, I'll definitely talk about role based authorization.
@mitchellstephens4228
@mitchellstephens4228 4 года назад
@@prettyprinted Can you show in that video how to override preset forms from Flask-Security too? For example, I had a custom login page, then using userdatastore to try and get roles going it updated my login page and now i cant even login. I have looked at every single google post about it, each one doesnt work. The closest i think i have gotten still returns a jinja2: "form" is not defined error...
@prettyprinted
@prettyprinted 4 года назад
@@mitchellstephens4228 I'll see what I can do.
@anouartouil3645
@anouartouil3645 4 года назад
Hi Anthony can please make a video of flask security in combinition with some bootstrap or css
@prettyprinted
@prettyprinted 4 года назад
I definitely will when I continue this series.
@PatentLobster
@PatentLobster 4 года назад
@@prettyprinted Subscribed for that add 2fa as well please :D
@WtFRiChOmaTiC
@WtFRiChOmaTiC 4 года назад
Is there a reason why we’d use flask security to hash vs flask bycrypt extension or is it because there’s just a lot more features with flask security
@WtFRiChOmaTiC
@WtFRiChOmaTiC 4 года назад
Great content by the way
@prettyprinted
@prettyprinted 4 года назад
Flask-Security uses Bcrypt by default, so it's definitely the easier approach.
@anouartouil3645
@anouartouil3645 4 года назад
why aren't you using the templates coming with flask_security like : register and login
@prettyprinted
@prettyprinted 4 года назад
This is just an intro video. I plan to cover more features of the framework later.
@yashgambhir2874
@yashgambhir2874 Год назад
Flask security looks for email in Used table by default ! Can I change this ? I don’t have email in my user table, I’ve username !! Please help !!
@abhinavbansal2811
@abhinavbansal2811 4 года назад
Can you make a video on how to implement google login in flask
@prettyprinted
@prettyprinted 4 года назад
I'll see what I can do. Thanks for the idea.
@PMA65537
@PMA65537 4 года назад
There are python libraries said to exist for Openid Connect. openid.net/developers/certified/
@user-sr7or3ez4z
@user-sr7or3ez4z 11 месяцев назад
I am getting this error: AttributeError: 'Flask' object has no attribute 'before_first_request'. Did you mean: '_got_first_request'? Any solutions ?
@prettyprinted
@prettyprinted 11 месяцев назад
Try using Flask-Security-too if you're not already.
@Achrononmaster
@Achrononmaster 3 года назад
Users should also check out flask-praetorian, github.com/dusktreader/flask-praetorian (simpler and probably more secure).
@alkareetesh8193
@alkareetesh8193 7 месяцев назад
what if I want separate model.py
@Achrononmaster
@Achrononmaster 3 года назад
Oh for the love of god, some maintainer please please rename or alias ``flask_security.SQLAlchemyUserDataStore`` to ``flask_security.userdata``. Don't let the Java hive mind infect Python.
@storiesshubham4145
@storiesshubham4145 9 месяцев назад
This video is now outdated. Although it can be watched for conceptual clarity
Далее
Deploy a Serverless Flask App using Zappa
10:15
Просмотров 18 тыс.
Intro to Flask-Caching
13:15
Просмотров 21 тыс.
меня не было еще год
08:33
Просмотров 2,6 млн
Python REST API Tutorial - Building a Flask REST API
1:14:01
Build your first REST API with Flask and PostgreSQL
27:42
Python Flask Crash Course 2023
1:34:18
Просмотров 8 тыс.
Professional Webhooks with Flask in Python
11:59
Просмотров 31 тыс.
The Man Who Solved the World’s Hardest Math Problem
11:14
Intro to Flask Blueprints
9:15
Просмотров 48 тыс.
Introduction to Flask-Security
1:49:30
Просмотров 501