mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-19 12:59:12 +01:00
17 lines
626 B
TypeScript
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);
|
|
});
|