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

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

Add authproxy as supported user auth method

(cherry picked from commit d52626be3f)

# Conflicts:
#	public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx
This commit is contained in:
Andreas Christou
2024-08-09 17:45:47 +01:00
committed by GitHub
parent 37a535f5d3
commit d96741eb51
@@ -60,8 +60,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 &&