Intro to Flask-Security

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 52

  • @prettyprinted
    @prettyprinted  4 роки тому

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

  • @lator1941
    @lator1941 Рік тому +3

    Mr Anthony, your contribution to the Flask community is invaluable.

  • @najibfahs2657
    @najibfahs2657 3 роки тому +1

    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!

  • @afelixalves
    @afelixalves 3 роки тому +3

    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!

  • @mxd8
    @mxd8 2 роки тому +4

    can you make one on flask-security-too

  • @kishoreandra
    @kishoreandra 5 років тому +8

    Anthony would you make a video on avoiding circular import and large projects structure

    • @prettyprinted
      @prettyprinted  5 років тому +1

      I have some videos on project structure. Here's the latest: ua-cam.com/video/MbXEQZZSvzk/v-deo.html

  • @pietraderdetective8953
    @pietraderdetective8953 Рік тому

    awesome Sir!
    you have the best Flask tutorial videos!
    make some more please..

    • @prettyprinted
      @prettyprinted  Рік тому

      Glad you like the videos! Thanks for watching.

  • @nullyberd
    @nullyberd 4 роки тому

    Thanks for the really great tutorial, this is so much better than the tutorial on the official docs.

  • @dhruvsharma5756
    @dhruvsharma5756 10 місяців тому

    Thanks , It was very helpful

  • @teclote
    @teclote 11 місяців тому

    Very good, thank you.

  • @obobob3185
    @obobob3185 4 роки тому +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 4 роки тому

      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'

  • @tymothylim6550
    @tymothylim6550 3 роки тому

    Thank you very much for this video :) It was very interesting and educational!

  • @Christine-qx5ce
    @Christine-qx5ce 2 роки тому +1

    Also I had to do: pip install email_validator

  • @carnivorouspanda4018
    @carnivorouspanda4018 3 роки тому

    Awesome examples!

  • @Achrononmaster
    @Achrononmaster 4 роки тому

    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.'

  • @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 )

  • @mitchellstephens4228
    @mitchellstephens4228 5 років тому +1

    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  5 років тому +1

      When I make more Flask-Security videos, I'll definitely talk about role based authorization.

    • @mitchellstephens4228
      @mitchellstephens4228 5 років тому

      @@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  5 років тому +1

      @@mitchellstephens4228 I'll see what I can do.

  • @abhinavbansal2811
    @abhinavbansal2811 5 років тому +1

    Can you make a video on how to implement google login in flask

    • @prettyprinted
      @prettyprinted  5 років тому

      I'll see what I can do. Thanks for the idea.

    • @PMA65537
      @PMA65537 5 років тому

      There are python libraries said to exist for Openid Connect. openid.net/developers/certified/

  • @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.

  • @WaldirBorbaJunior
    @WaldirBorbaJunior 5 років тому

    Amazing video. I loved the content.

  • @anouartouil3645
    @anouartouil3645 5 років тому

    Hi Anthony can please make a video of flask security in combinition with some bootstrap or css

    • @prettyprinted
      @prettyprinted  5 років тому

      I definitely will when I continue this series.

    • @PatentLobster
      @PatentLobster 4 роки тому

      @@prettyprinted Subscribed for that add 2fa as well please :D

  • @yashsoni5437
    @yashsoni5437 4 роки тому

    Perfect tutorial!

  • @naheliegend5222
    @naheliegend5222 3 роки тому

    can you create an __init__ within your models for creating a new entity?

  • @anouartouil3645
    @anouartouil3645 5 років тому +1

    why aren't you using the templates coming with flask_security like : register and login

    • @prettyprinted
      @prettyprinted  5 років тому +1

      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 !!

  • @WtFRiChOmaTiC
    @WtFRiChOmaTiC 5 років тому +2

    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 5 років тому +1

      Great content by the way

    • @prettyprinted
      @prettyprinted  5 років тому

      Flask-Security uses Bcrypt by default, so it's definitely the easier approach.

  • @NoumanHasan-z3f
    @NoumanHasan-z3f Рік тому

    I am getting this error: AttributeError: 'Flask' object has no attribute 'before_first_request'. Did you mean: '_got_first_request'?
    Any solutions ?

    • @prettyprinted
      @prettyprinted  Рік тому +1

      Try using Flask-Security-too if you're not already.

  • @alkareetesh8193
    @alkareetesh8193 11 місяців тому

    what if I want separate model.py

  • @Achrononmaster
    @Achrononmaster 4 роки тому

    Users should also check out flask-praetorian, github.com/dusktreader/flask-praetorian (simpler and probably more secure).

  • @vatsalaykhobragade
    @vatsalaykhobragade 5 років тому

    thank you anthony for the tutorial. BTW its first comment !

  • @storiesshubham4145
    @storiesshubham4145 Рік тому

    This video is now outdated. Although it can be watched for conceptual clarity

  • @Achrononmaster
    @Achrononmaster 4 роки тому +1

    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.