uranusjr commented on a change in pull request #19190:
URL: https://github.com/apache/airflow/pull/19190#discussion_r735299899
##########
File path: airflow/www/fab_security/auth_backends/db_backend.py
##########
@@ -0,0 +1,96 @@
+from werkzeug.security import check_password_hash, generate_password_hash
+from sqlalchemy import and_, func, literal
+from sqlalchemy.orm.exc import MultipleResultsFound
+import logging
+
+from airflow.www.fab_security.sqla.models import (
+ Action,
+ Permission,
+ RegisterUser,
+ Resource,
+ Role,
+ User,
+ assoc_permission_role,
+)
+
+from flask_appbuilder.const import (
+ LOGMSG_WAR_SEC_LOGIN_FAILED,
+)
+
+log = logging.getLogger(__name__)
+
+
+class DatabaseBackend:
Review comment:
Can we add some type hint capacities to auth backends?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]