From 0d084099459e9df42851d5d34b347395294f22c7 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:43:04 +0100 Subject: [PATCH] [v11.1.x] AzureMonitor: Add authproxy as supported user auth method (#91758) AzureMonitor: Add authproxy as supported user auth method (#91754) Add authproxy as supported user auth method (cherry picked from commit d52626be3f07d585556abc100807617db0eba64c) Co-authored-by: Andreas Christou --- .../azuremonitor/components/QueryEditor/QueryEditor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx index 6dfed0a2146..a68223f2ebc 100644 --- a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx @@ -64,7 +64,9 @@ const QueryEditor = ({ options: datasource.getVariables().map((v) => ({ label: v, value: v })), }; - const isAzureAuthenticated = config.bootData.user.authenticatedBy === 'oauth_azuread'; + // Allow authproxy as it may not be clear if an authproxy user is authenticated by Azure + const isAzureAuthenticated = + config.bootData.user.authenticatedBy === 'oauth_azuread' || config.bootData.user.authenticatedBy === 'authproxy'; if (datasource.currentUserAuth) { if ( app === CoreApp.UnifiedAlerting &&