You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/15 16:48:44 UTC

[GitHub] [airflow] ashb commented on a change in pull request #21472: Implement multiple API auth backends

ashb commented on a change in pull request #21472:
URL: https://github.com/apache/airflow/pull/21472#discussion_r807058105



##########
File path: airflow/www/extensions/init_jinja_globals.py
##########
@@ -66,9 +66,13 @@ def prepare_jinja_globals():
             'airflow_version': airflow_version,
             'git_version': git_version,
             'k8s_or_k8scelery_executor': IS_K8S_OR_K8SCELERY_EXECUTOR,
-            'rest_api_enabled': conf.get('api', 'auth_backend') != 'airflow.api.auth.backend.deny_all',
+            'rest_api_enabled': False,

Review comment:
       Hmmm, this one isn't right.
   
   This is used to control if the "Test Connection" button is enabled for the Connections form - see https://github.com/apache/airflow/pull/19792
   
   So we probably want to test if `session` is in this list.




-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org