From ab7661fdb440fa682db37ce604c2fa4badae4acb Mon Sep 17 00:00:00 2001 From: Odin Thomas Rochmann Date: Tue, 12 Mar 2024 15:14:37 +0100 Subject: [PATCH] feat(cli): update CLI config to allow embedding in iframe --- .changeset/afraid-countries-repeat.md | 5 +++++ packages/cli/src/bin/dev-portal/config.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/afraid-countries-repeat.md diff --git a/.changeset/afraid-countries-repeat.md b/.changeset/afraid-countries-repeat.md new file mode 100644 index 0000000000..bf17379172 --- /dev/null +++ b/.changeset/afraid-countries-repeat.md @@ -0,0 +1,5 @@ +--- +"@equinor/fusion-framework-cli": patch +--- + +Updated CLI config to allow embedding in iframe diff --git a/packages/cli/src/bin/dev-portal/config.ts b/packages/cli/src/bin/dev-portal/config.ts index 90990b42b2..8d3551477c 100644 --- a/packages/cli/src/bin/dev-portal/config.ts +++ b/packages/cli/src/bin/dev-portal/config.ts @@ -25,6 +25,9 @@ export const configure = async (config: FrameworkConfigurator) => { tenantId: '3aa4a235-b6e2-48d5-9195-7fcf05b459b0', clientId: '9b707e3a-3e90-41ed-a47e-652a1e3b53d0', redirectUri: '/authentication/login-callback', + config: { + behavior: window.parent === window ? 'redirect' : 'popup', + }, }, { requiresAuth: true }, );