Hide Flask-Admin behind simple HTTP auth

This example is about Flask-Admin, which is a library that adds a smart automatic CRUD panel according to your data models (typically SQLAlchemy models).

If you have a simple website or want to separate your normal user authentication system from the admin login, or just want a quick temporary solution for securing your admin panel, here is how you can do it using simple HTTP authentication:


wzxhzdk:0

Then just use this class or subclass it as normal.

This code, of course, refers to the app configuration. You need something like:

wzxhzdk:1

Created (last updated )
Comments powered by Disqus