Files
cosmos-explorer/src/redirectBridge.ts
Sindhu Balasubramanian 99d316dbaa Reapply "MSAL browser migration changes"
This reverts commit 60a65efb7b.
2026-03-29 18:22:14 -07:00

17 lines
626 B
TypeScript

/**
* MSAL COOP Redirect Bridge
*
* This page handles the authentication response from the Identity Provider (IdP)
* and broadcasts it to the main application frame. Required for msal-browser v5+
* to securely handle auth responses when the IdP sets Cross-Origin-Opener-Policy headers.
*
* Security Note: This file must be bundled with your application, NOT loaded from a CDN.
*
* CG Alert: MVS-2026-vmmw-f85q
*/
import { broadcastResponseToMainFrame } from "@azure/msal-browser/redirect-bridge";
broadcastResponseToMainFrame().catch((error: unknown) => {
console.error("MSAL redirect bridge error:", error);
});