Materialschein & Kabelrechner für BergVOLT Elektrotechnik, portiert von der vorherigen Single-File-HTML-Version. Microsoft-Entra-ID-Login (MSAL), Projekt- Dashboard statt einer Datei pro Kunde, Retour-Buchen-Zusammenführung, 111 Kabeltypen aus den offiziellen Meinhart-Datenblättern. gitops/ nach PROX/deploy-standard: git-backed Portainer-Stack, versionierte Docker-Images, CI-Commit-back auf gitops/stack.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
704 B
TypeScript
20 lines
704 B
TypeScript
import { PublicClientApplication, type Configuration } from '@azure/msal-browser';
|
|
|
|
// Gleiche Azure-AD-App-Registrierung wie die anderen BergVOLT-Tools (Zeiterfassung).
|
|
// Client-ID/Tenant-ID sind für einen öffentlichen SPA-Client nicht geheim.
|
|
export const MSAL_CLIENT_ID = 'b1cd974c-77ce-4d93-b6e8-00e41a31adc8';
|
|
export const MSAL_TENANT_ID = 'd9adeaaf-853b-4c4e-a822-8f1bedbb84f6';
|
|
|
|
const msalConfig: Configuration = {
|
|
auth: {
|
|
clientId: MSAL_CLIENT_ID,
|
|
authority: `https://login.microsoftonline.com/${MSAL_TENANT_ID}`,
|
|
redirectUri: window.location.origin
|
|
},
|
|
cache: {
|
|
cacheLocation: 'sessionStorage'
|
|
}
|
|
};
|
|
|
|
export const msalInstance = new PublicClientApplication(msalConfig);
|