mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-22 14:33:34 +01:00
* Reapply "MSAL browser migration changes"
This reverts commit 60a65efb7b.
* Fix redirect URI for localhost
* Fix URI for logout and other minor fix
* Remove unnecessary files
* Fix tests
* Fix tests
* Run npm format
* Address comments
* Address comment
16 lines
594 B
TypeScript
16 lines
594 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.
|
|
*
|
|
*/
|
|
import { broadcastResponseToMainFrame } from "@azure/msal-browser/redirect-bridge";
|
|
|
|
broadcastResponseToMainFrame().catch((error: unknown) => {
|
|
console.error("MSAL redirect bridge error:", error);
|
|
});
|