The Simplest Login System in Flask: HTTP Basic Auth

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • Implement the most simple login for your Flask app by using HTTP basic auth. It will only take a few lines of code to protect pages on your app.
    Build Better Apps, Faster In Only 4 Minutes👇🏼
    prettyprinted....
    💻 Code written in video
    prettyprinted....

Комментарии • 10

  • @stefvleugels1736
    @stefvleugels1736 Год назад +1

    Is it possible to do this in another way other than sending a notification? (my organization blocks those)

  • @shashankankam3537
    @shashankankam3537 Год назад

    Great video, huge thumbs up 👍🏻👍🏻. I just have one question, how do i pass the credentials if i wanted to test the api using Postman or Rested extension(Chrome browser)?

  • @REgamesplayer
    @REgamesplayer Год назад +1

    I get ImportError: attempted relative import with no known parent package when trying to import my own library.
    Also, not sure where you found those env files.

    • @prettyprinted
      @prettyprinted  Год назад

      You'll need to have a __init__.py file. Also, you can create your own .env file

  • @n.m4497
    @n.m4497 Год назад

    Any clues as to why the .env variables dont get picked up? Great Video mate

  • @pritishmahalle9052
    @pritishmahalle9052 Год назад

    hw do i do it for app which is running on production?

  • @timmanning9
    @timmanning9 Год назад

    Would you use basic auth or OAuth2 secure webhooks?

    • @prettyprinted
      @prettyprinted  Год назад +1

      Basic auth when you want a very simple way to protect the pages of your app. I'm not sure what you mean by OAuth2 secure webhooks, but OAuth2 is much more complicated, so if your users want to use OAuth, then it may be worth implementing.

  • @dmbrv
    @dmbrv Год назад

    great video