Does anyone know how I'll be able to get the current user from airflow? We have our backend enabled to airflow/contrib/auth/backends/ldap_auth.py
and so users log in via that authentication and I want to know how to get the current user that clicks on something (a custom view we have as a plugin).
Airflow: Get user logged in with ldap
1.9k views Asked by Ace Haidrey At
1
You can get it by calling
{{ current_user.user.username }}
or{{ current_user.user }}
in your html jenja template.