Add authentication and application management scripts for Azure AD

This commit is contained in:
2026-01-26 22:31:27 +01:00
parent bf9a85199e
commit 5b5ab6b78b
6 changed files with 636 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
const execSync = require('child_process').execSync;
const { config } = require('../config.js');
import { execSync } from 'child_process';
import { config } from '../config.js';
// Get the Azure AD application ID by name
const appId = execSync(`az ad app list --query "[?displayName=='${config.appName}'].appId" -o tsv`).toString().trim();