From 0d7cd7800c1332af628e8b9e29ab1ef3144fbc6a Mon Sep 17 00:00:00 2001 From: Andy Herzog Date: Mon, 15 Mar 2021 08:28:23 -0600 Subject: [PATCH] refactor: check web origin --- internal/cli/quickstarts.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/cli/quickstarts.go b/internal/cli/quickstarts.go index 931d6f3d8..dcff8d421 100644 --- a/internal/cli/quickstarts.go +++ b/internal/cli/quickstarts.go @@ -332,7 +332,9 @@ func promptDefaultURLs(ctx context.Context, cli *cli, client *management.Client, if confirmed := prompt.Confirm(formatURLPrompt(qsType)); confirmed { a.Callbacks = append(a.Callbacks, _defaultURL) a.AllowedLogoutURLs = append(a.AllowedLogoutURLs, _defaultURL) - a.WebOrigins = append(a.WebOrigins, _defaultURL) + if strings.EqualFold(qsType, QSSpa) { + a.WebOrigins = append(a.WebOrigins, _defaultURL) + } shouldUpdate = true } if shouldUpdate {