Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.71k
stars
1.36k
forks
source link
Feature Request: Make the `login`/`logout` methods in `AuthView` configurable #2248
In Apache Airflow, we have a use case for protecting the logout route from CSRF attacks (https://github.com/apache/airflow/issues/33030), and for that we need to convert the methods of logout route in AuthView to ["POST"] only. As we use the default configuration, we need to override the method manually which is a bit hacky.
It would be nice if we could make the login and logout methods in AuthView configurable, somewhat like the following snippet:
In Apache Airflow, we have a use case for protecting the
logout
route from CSRF attacks (https://github.com/apache/airflow/issues/33030), and for that we need to convert the methods oflogout
route inAuthView
to["POST"]
only. As we use the default configuration, we need to override the method manually which is a bit hacky. It would be nice if we could make thelogin
andlogout
methods inAuthView
configurable, somewhat like the following snippet: