[v11.2.x] AzureMonitor: Add authproxy as supported user auth method (#92248)

AzureMonitor: Add authproxy as supported user auth method (#91754)

Add authproxy as supported user auth method

(cherry picked from commit d52626be3f)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-08-21 17:57:49 -04:00
committed by GitHub
co-authored by Andreas Christou
parent e23f74f1c7
commit a919c7561b
@@ -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 &&