BMFH commented on code in PR #29054: URL: https://github.com/apache/airflow/pull/29054#discussion_r1082280492
########## airflow/api/auth/backend/kerberos_auth.py: ########## @@ -141,7 +143,7 @@ def decorated(*args, **kwargs): token = "".join(header.split()[1:]) return_code = _gssapi_authenticate(token) if return_code == kerberos.AUTH_GSS_COMPLETE: - g.user = ctx.kerberos_user + g.user = get_airflow_app().appbuilder.sm.find_user(email=ctx.kerberos_user) Review Comment: It works. In case when email domain not equal kerberos realm I suggest to look user by username field. It works too. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org