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!
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
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.'
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 )
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 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...
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.
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.
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
Mr Anthony, your contribution to the Flask community is invaluable.
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!
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!
can you make one on flask-security-too
Anthony would you make a video on avoiding circular import and large projects structure
I have some videos on project structure. Here's the latest: ua-cam.com/video/MbXEQZZSvzk/v-deo.html
awesome Sir!
you have the best Flask tutorial videos!
make some more please..
Glad you like the videos! Thanks for watching.
Thanks for the really great tutorial, this is so much better than the tutorial on the official docs.
Thanks , It was very helpful
Very good, thank you.
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
try flask-login, it has some login manager stuff that does this i believe!
Add to user model a role and for example if a user login as an admin write current_user.role = 'admin'
Thank you very much for this video :) It was very interesting and educational!
Also I had to do: pip install email_validator
Awesome examples!
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.'
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 )
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.
When I make more Flask-Security videos, I'll definitely talk about role based authorization.
@@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...
@@mitchellstephens4228 I'll see what I can do.
Can you make a video on how to implement google login in flask
I'll see what I can do. Thanks for the idea.
There are python libraries said to exist for Openid Connect. openid.net/developers/certified/
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.
Amazing video. I loved the content.
Thanks for watching!
Hi Anthony can please make a video of flask security in combinition with some bootstrap or css
I definitely will when I continue this series.
@@prettyprinted Subscribed for that add 2fa as well please :D
Perfect tutorial!
can you create an __init__ within your models for creating a new entity?
why aren't you using the templates coming with flask_security like : register and login
This is just an intro video. I plan to cover more features of the framework later.
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 !!
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
Great content by the way
Flask-Security uses Bcrypt by default, so it's definitely the easier approach.
I am getting this error: AttributeError: 'Flask' object has no attribute 'before_first_request'. Did you mean: '_got_first_request'?
Any solutions ?
Try using Flask-Security-too if you're not already.
what if I want separate model.py
Users should also check out flask-praetorian, github.com/dusktreader/flask-praetorian (simpler and probably more secure).
thank you anthony for the tutorial. BTW its first comment !
Thanks for watching!
This video is now outdated. Although it can be watched for conceptual clarity
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.