From f75db8c8c91a8acbc8a09317ab7f74cd9ad3b819 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 13:54:54 +0800 Subject: [PATCH 01/34] Show inline preview --- .../portal/DesignScreen/DesignScreen.tsx | 63 +++++++++++++++++-- .../src/graphql/portal/DesignScreen/form.ts | 3 + portal/src/model/themeAuthFlowV2.ts | 5 ++ 3 files changed, 65 insertions(+), 6 deletions(-) diff --git a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx index c90ed1dfdb..318dd476bb 100644 --- a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx +++ b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useContext } from "react"; +import React, { useCallback, useContext, useMemo } from "react"; import { DefaultEffects, Text } from "@fluentui/react"; import { Context as MFContext, @@ -31,6 +31,7 @@ import Separator from "../../../components/design/Separator"; import { BranchDesignForm, useBrandDesignForm } from "./form"; import styles from "./DesignScreen.module.css"; +import { useAppAndSecretConfigQuery } from "../query/appAndSecretConfigQuery"; interface OrganisationConfigurationProps { designForm: BranchDesignForm; @@ -396,16 +397,58 @@ const ConfigurationPanel: React.VFC = ); }; +interface PreviewProps { + publicOrgin: string; + designForm: BranchDesignForm; +} +const Preview: React.VFC = function Preview(props) { + const { designForm, publicOrgin } = props; + + const src = useMemo(() => { + const url = new URL(publicOrgin); + url.pathname = "login"; + url.searchParams.append("x_color_scheme", designForm.state.theme); + url.searchParams.append("ui_locales", designForm.state.selectedLanguage); + return url.toString(); + }, [publicOrgin, designForm.state.selectedLanguage, designForm.state.theme]); + + return ( + + ); +}; + const DesignScreen: React.VFC = function DesignScreen() { const { appID } = useParams() as { appID: string }; + const { + effectiveAppConfig, + loading: appConfigLoading, + error: appConfigError, + refetch: reloadConfig, + } = useAppAndSecretConfigQuery(appID); const form = useBrandDesignForm(appID); - if (form.isLoading) { + const reloadData = useCallback(() => { + form.reload(); + reloadConfig().catch((error) => { + console.error(error); + }); + }, [form, reloadConfig]); + + if (form.isLoading || appConfigLoading) { return ; } - if (form.loadError) { - return ; + if (form.loadError ?? appConfigError) { + return ( + + ); } return ( @@ -447,12 +490,20 @@ const DesignScreen: React.VFC = function DesignScreen() { >
- Preview +
diff --git a/portal/src/graphql/portal/DesignScreen/form.ts b/portal/src/graphql/portal/DesignScreen/form.ts index 316450478c..c68068f37d 100644 --- a/portal/src/graphql/portal/DesignScreen/form.ts +++ b/portal/src/graphql/portal/DesignScreen/form.ts @@ -11,6 +11,7 @@ import { CustomisableThemeStyleGroup, DEFAULT_LIGHT_THEME, StyleCssVisitor, + Theme, ThemeTargetSelector, } from "../../../model/themeAuthFlowV2"; import { @@ -86,6 +87,7 @@ const enum TranslationKey { export type BranchDesignFormState = { selectedLanguage: LanguageTag; + theme: Theme; } & ConfigFormState & ResourcesFormState & FeatureConfig; @@ -385,6 +387,7 @@ export function useBrandDesignForm(appID: string): BranchDesignForm { const state: BranchDesignFormState = useMemo( () => ({ + theme: Theme.Light, selectedLanguage, ...configForm.state, ...resourcesState, diff --git a/portal/src/model/themeAuthFlowV2.ts b/portal/src/model/themeAuthFlowV2.ts index 6d049f4c17..399ca851f0 100644 --- a/portal/src/model/themeAuthFlowV2.ts +++ b/portal/src/model/themeAuthFlowV2.ts @@ -7,6 +7,11 @@ import { CssRuleNodeWrapper, } from "../util/cssVisitor"; +export enum Theme { + Light = "light", + Dark = "dark", +} + export const enum ThemeTargetSelector { Light = ":root", } From 224884279ac22eb5998cedcf28532331b8ddf947 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 14:47:52 +0800 Subject: [PATCH 02/34] Compute supported preview pages --- .../graphql/portal/DesignScreen/viewModel.ts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 portal/src/graphql/portal/DesignScreen/viewModel.ts diff --git a/portal/src/graphql/portal/DesignScreen/viewModel.ts b/portal/src/graphql/portal/DesignScreen/viewModel.ts new file mode 100644 index 0000000000..5db05dcfbd --- /dev/null +++ b/portal/src/graphql/portal/DesignScreen/viewModel.ts @@ -0,0 +1,47 @@ +import { PortalAPIAppConfig } from "../../../types"; + +export enum PreviewPage { + Login = "preview/login", + SignUp = "preview/signup", + EnterPassword = "preview/authflow/v2/enter_password", + EnterOOBOTP = "preview/authflow/v2/enter_oob_otp", + UsePasskey = "preview/authflow/v2/use_passkey", + EnterTOTP = "preview/authflow/v2/enter_totp", + OOBOTPLink = "preview/authflow/v2/oob_otp_link", + CreatePassword = "preview/authflow/v2/create_password", +} + +export function getSupportedPreviewPagesFromConfig( + config: PortalAPIAppConfig +): PreviewPage[] { + const pages: PreviewPage[] = []; + pages.push(PreviewPage.Login); // Login page is always there + pages.push(PreviewPage.SignUp); // SignUp page is always there + if ( + config.authentication?.primary_authenticators?.includes("oob_otp_sms") || + (config.authentication?.primary_authenticators?.includes("oob_otp_email") && + config.authenticator?.oob_otp?.email?.email_otp_mode === "code") + ) { + pages.push(PreviewPage.EnterOOBOTP); + } + if (config.authentication?.primary_authenticators?.includes("password")) { + pages.push(PreviewPage.CreatePassword); + pages.push(PreviewPage.EnterPassword); + } + if (config.authentication?.primary_authenticators?.includes("passkey")) { + pages.push(PreviewPage.UsePasskey); + } + if ( + config.authentication?.secondary_authentication_mode === "required" || + config.authentication?.secondary_authentication_mode === "if_exists" + ) { + pages.push(PreviewPage.EnterTOTP); + } + if ( + config.authentication?.primary_authenticators?.includes("oob_otp_email") && + config.authenticator?.oob_otp?.email?.email_otp_mode === "login_link" + ) { + pages.push(PreviewPage.OOBOTPLink); + } + return pages; +} From 835025a48e088859d5422d53aa97a5e57bda1371 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 17:44:18 +0800 Subject: [PATCH 03/34] Show page switcher --- .../portal/DesignScreen/DesignScreen.tsx | 123 +++++++++++++++--- portal/src/locale-data/en.json | 8 ++ 2 files changed, 110 insertions(+), 21 deletions(-) diff --git a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx index 318dd476bb..5a88be1850 100644 --- a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx +++ b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx @@ -1,5 +1,13 @@ -import React, { useCallback, useContext, useMemo } from "react"; -import { DefaultEffects, Text } from "@fluentui/react"; +import React, { useCallback, useContext, useMemo, useState } from "react"; +import { + DefaultEffects, + Dropdown, + IDropdownOption, + IDropdownStyleProps, + IDropdownStyles, + IStyleFunctionOrObject, + Text, +} from "@fluentui/react"; import { Context as MFContext, FormattedMessage, @@ -32,6 +40,8 @@ import Separator from "../../../components/design/Separator"; import { BranchDesignForm, useBrandDesignForm } from "./form"; import styles from "./DesignScreen.module.css"; import { useAppAndSecretConfigQuery } from "../query/appAndSecretConfigQuery"; +import { PortalAPIAppConfig } from "../../../types"; +import { PreviewPage, getSupportedPreviewPagesFromConfig } from "./viewModel"; interface OrganisationConfigurationProps { designForm: BranchDesignForm; @@ -397,27 +407,100 @@ const ConfigurationPanel: React.VFC = ); }; +const PreviewPageDropdownStyles: IStyleFunctionOrObject< + IDropdownStyleProps, + IDropdownStyles +> = { + dropdown: { + width: "180px", + selectors: { + "::after": { + display: "none", + }, + }, + }, + title: { + border: "none", + textAlign: "right", + }, +}; + interface PreviewProps { - publicOrgin: string; + effectiveAppConfig: PortalAPIAppConfig; designForm: BranchDesignForm; } const Preview: React.VFC = function Preview(props) { - const { designForm, publicOrgin } = props; + const { designForm, effectiveAppConfig } = props; + const { renderToString } = useContext(MFContext); + + const supportedPreviewPages = useMemo( + () => getSupportedPreviewPagesFromConfig(effectiveAppConfig), + [effectiveAppConfig] + ); + + const [selectedPreviewPage, setSelectedPreviewPage] = useState( + () => supportedPreviewPages[0] + ); + + const previewPageOptions = useMemo((): IDropdownOption[] => { + return supportedPreviewPages.map( + (page): IDropdownOption => ({ + key: page, + text: renderToString(`DesignScreen.preview.pages.title.${page}`), + }) + ); + }, [supportedPreviewPages, renderToString]); + const onChangePreviewPageOption = useCallback( + (_e: unknown, option?: IDropdownOption) => { + if (option == null) { + return; + } + setSelectedPreviewPage(option.key as PreviewPage); + }, + [] + ); const src = useMemo(() => { - const url = new URL(publicOrgin); - url.pathname = "login"; + const url = new URL(effectiveAppConfig.http?.public_origin ?? ""); + url.pathname = selectedPreviewPage; url.searchParams.append("x_color_scheme", designForm.state.theme); url.searchParams.append("ui_locales", designForm.state.selectedLanguage); return url.toString(); - }, [publicOrgin, designForm.state.selectedLanguage, designForm.state.theme]); + }, [ + effectiveAppConfig.http?.public_origin, + designForm.state.selectedLanguage, + designForm.state.theme, + selectedPreviewPage, + ]); return ( - +
+
+ +
+ +
); }; @@ -438,17 +521,15 @@ const DesignScreen: React.VFC = function DesignScreen() { }); }, [form, reloadConfig]); - if (form.isLoading || appConfigLoading) { + const isLoading = + form.isLoading || appConfigLoading || effectiveAppConfig == null; + if (isLoading) { return ; } - if (form.loadError ?? appConfigError) { - return ( - - ); + const loadError = form.loadError ?? appConfigError; + if (loadError != null) { + return ; } return ( @@ -501,7 +582,7 @@ const DesignScreen: React.VFC = function DesignScreen() { }} >
diff --git a/portal/src/locale-data/en.json b/portal/src/locale-data/en.json index 0745c7088e..cbdd7f6122 100644 --- a/portal/src/locale-data/en.json +++ b/portal/src/locale-data/en.json @@ -911,6 +911,14 @@ "DesignScreen.configuration.authgearBranding.upgradeNow": "Upgrade now", "DesignScreen.configuration.authgearBranding.disableAuthgearLogo.label": "Display Authgear logo in Sign in and Sign up page", "DesignScreen.configuration.fallback": "Leave unset to fallback to primary language settings - {fallbackLanguage}", + "DesignScreen.preview.pages.title.preview/login": "Log In", + "DesignScreen.preview.pages.title.preview/signup": "Sign Up", + "DesignScreen.preview.pages.title.preview/authflow/v2/enter_password": "Enter Password", + "DesignScreen.preview.pages.title.preview/authflow/v2/enter_oob_otp": "Verification Code", + "DesignScreen.preview.pages.title.preview/authflow/v2/use_passkey": "Passkey", + "DesignScreen.preview.pages.title.preview/authflow/v2/enter_totp": "2-Step Verification", + "DesignScreen.preview.pages.title.preview/authflow/v2/oob_otp_link": "Log in link", + "DesignScreen.preview.pages.title.preview/authflow/v2/create_password": "Create Password", "UISettingsScreen.title": "Design", "UISettingsScreen.description": "Authgear comes with some simple styling for your login and signup page. You can customize the look and feel here.", From e28511c85fc5ab3dc692a0f672190c90f4627f8f Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 20:50:23 +0800 Subject: [PATCH 04/34] Configure which origins authui can listen to for window.postMessage --- .env.example | 2 + pkg/auth/handler/webapp/viewmodels/base.go | 62 +- pkg/auth/wire_gen.go | 4356 +++++++++-------- pkg/lib/config/environment.go | 4 + pkg/lib/deps/deps_provider.go | 1 + .../en/web/authflowv2/__html_head.html | 1 + 6 files changed, 2340 insertions(+), 2086 deletions(-) diff --git a/.env.example b/.env.example index 5a44be3461..1b57cf22d7 100644 --- a/.env.example +++ b/.env.example @@ -19,6 +19,8 @@ ANALYTIC_EPOCH=2021-03-25 ELASTICSEARCH_URL=http://localhost:9200 +AUTH_UI_WINDOW_MESSAGE_ALLOWED_ORIGINS=http://portal.localhost:8000 + CORS_ALLOWED_ORIGINS=portal.localhost:8000 ALLOWED_FRAME_ANCESTORS=http://portal.localhost:8000 diff --git a/pkg/auth/handler/webapp/viewmodels/base.go b/pkg/auth/handler/webapp/viewmodels/base.go index 05011143a9..36705ae13c 100644 --- a/pkg/auth/handler/webapp/viewmodels/base.go +++ b/pkg/auth/handler/webapp/viewmodels/base.go @@ -5,6 +5,7 @@ import ( htmltemplate "html/template" "net/http" "net/url" + "strings" "github.com/gorilla/csrf" "golang.org/x/text/language" @@ -73,8 +74,9 @@ type BaseViewModel struct { GoogleTagManagerContainerID string TutorialMessageType string // HasThirdPartyApp indicates whether the project has third-party client - HasThirdPartyClient bool - AuthUISentryDSN string + HasThirdPartyClient bool + AuthUISentryDSN string + AuthUIWindowMessageAllowedOrigins string FirstNonPasskeyPrimaryAuthenticatorType string // websocket is used in interaction only, we disable it in authflow @@ -142,23 +144,24 @@ type WebappOAuthClientResolver interface { } type BaseViewModeler struct { - TrustProxy config.TrustProxy - OAuth *config.OAuthConfig - AuthUI *config.UIConfig - AuthUIFeatureConfig *config.UIFeatureConfig - StaticAssets StaticAssetResolver - ForgotPassword *config.ForgotPasswordConfig - Authentication *config.AuthenticationConfig - GoogleTagManager *config.GoogleTagManagerConfig - ErrorCookie ErrorCookie - Translations TranslationService - Clock clock.Clock - FlashMessage FlashMessage - DefaultLanguageTag template.DefaultLanguageTag - SupportedLanguageTags template.SupportedLanguageTags - AuthUISentryDSN config.AuthUISentryDSN - OAuthClientResolver WebappOAuthClientResolver - Logger BaseLogger + TrustProxy config.TrustProxy + OAuth *config.OAuthConfig + AuthUI *config.UIConfig + AuthUIFeatureConfig *config.UIFeatureConfig + StaticAssets StaticAssetResolver + ForgotPassword *config.ForgotPasswordConfig + Authentication *config.AuthenticationConfig + GoogleTagManager *config.GoogleTagManagerConfig + ErrorCookie ErrorCookie + Translations TranslationService + Clock clock.Clock + FlashMessage FlashMessage + DefaultLanguageTag template.DefaultLanguageTag + SupportedLanguageTags template.SupportedLanguageTags + AuthUISentryDSN config.AuthUISentryDSN + AuthUIWindowMessageAllowedOrigins config.AuthUIWindowMessageAllowedOrigins + OAuthClientResolver WebappOAuthClientResolver + Logger BaseLogger } func (m *BaseViewModeler) ViewModelForAuthFlow(r *http.Request, rw http.ResponseWriter) BaseViewModel { @@ -264,16 +267,17 @@ func (m *BaseViewModeler) ViewModel(r *http.Request, rw http.ResponseWriter) Bas } return webapp.MakeURL(u, path, outQuery).String() }, - ForgotPasswordEnabled: *m.ForgotPassword.Enabled, - PublicSignupDisabled: m.Authentication.PublicSignupDisabled, - PageLoadedAt: int(now), - FlashMessageType: m.FlashMessage.Pop(r, rw), - ResolvedLanguageTag: resolvedLanguageTag, - ResolvedCLDRLocale: locale, - HTMLDir: htmlDir, - GoogleTagManagerContainerID: m.GoogleTagManager.ContainerID, - HasThirdPartyClient: hasThirdPartyApp, - AuthUISentryDSN: string(m.AuthUISentryDSN), + ForgotPasswordEnabled: *m.ForgotPassword.Enabled, + PublicSignupDisabled: m.Authentication.PublicSignupDisabled, + PageLoadedAt: int(now), + FlashMessageType: m.FlashMessage.Pop(r, rw), + ResolvedLanguageTag: resolvedLanguageTag, + ResolvedCLDRLocale: locale, + HTMLDir: htmlDir, + GoogleTagManagerContainerID: m.GoogleTagManager.ContainerID, + HasThirdPartyClient: hasThirdPartyApp, + AuthUISentryDSN: string(m.AuthUISentryDSN), + AuthUIWindowMessageAllowedOrigins: strings.Join(m.AuthUIWindowMessageAllowedOrigins, ","), LogUnknownError: func(err map[string]interface{}) string { if err != nil { m.Logger.WithFields(err).Errorf("unknown error: %v", err) diff --git a/pkg/auth/wire_gen.go b/pkg/auth/wire_gen.go index 0c4f4c67ad..bda150d01d 100644 --- a/pkg/auth/wire_gen.go +++ b/pkg/auth/wire_gen.go @@ -1217,25 +1217,27 @@ func newOAuthConsentHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -7679,25 +7681,27 @@ func newWebAppLoginHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -8595,25 +8599,27 @@ func newWebAppSignupHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -9510,25 +9516,27 @@ func newWebAppPromoteHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -10413,25 +10421,27 @@ func newWebAppSelectAccountHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -11311,25 +11321,27 @@ func newWebAppAuthflowV2SelectAccountHandler(p *deps.RequestProvider) http.Handl Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -12342,25 +12354,27 @@ func newWebAppSSOCallbackHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -13364,25 +13378,27 @@ func newWebAppAuthflowSSOCallbackHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -14386,25 +14402,27 @@ func newWebAppAuthflowV2SSOCallbackHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -15275,25 +15293,27 @@ func newWechatAuthHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -16163,25 +16183,27 @@ func newWechatCallbackHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -17056,25 +17078,27 @@ func newWebAppEnterLoginIDHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -17951,25 +17975,27 @@ func newWebAppEnterPasswordHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -18843,25 +18869,27 @@ func newWebConfirmTerminateOtherSessionsHandler(p *deps.RequestProvider) http.Ha Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -19733,25 +19761,27 @@ func newWebAppUsePasskeyHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -20625,25 +20655,27 @@ func newWebAppCreatePasswordHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -21518,25 +21550,27 @@ func newWebAppCreatePasskeyHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -22410,25 +22444,27 @@ func newWebAppPromptCreatePasskeyHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -23302,25 +23338,27 @@ func newWebAppSetupTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -24196,25 +24234,27 @@ func newWebAppEnterTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -25088,25 +25128,27 @@ func newWebAppSetupOOBOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -25980,25 +26022,27 @@ func newWebAppEnterOOBOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -26876,25 +26920,27 @@ func newWebAppSetupWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -27768,25 +27814,27 @@ func newWebAppWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -28664,25 +28712,27 @@ func newWebAppSetupLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -29556,25 +29606,27 @@ func newWebAppLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -30456,25 +30508,27 @@ func newWebAppVerifyLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -31370,25 +31424,27 @@ func newWebAppAuthflowV2VerifyLoginLinkOTPHandler(p *deps.RequestProvider) http. Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -32273,25 +32329,27 @@ func newWebAppEnterRecoveryCodeHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -33165,25 +33223,27 @@ func newWebAppSetupRecoveryCodeHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -34053,25 +34113,27 @@ func newWebAppVerifyIdentityHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -34945,25 +35007,27 @@ func newWebAppVerifyIdentitySuccessHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -35833,25 +35897,27 @@ func newWebAppForgotPasswordHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -36731,25 +36797,27 @@ func newWebAppForgotPasswordSuccessHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -37619,25 +37687,27 @@ func newWebAppResetPasswordHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -38509,25 +38579,27 @@ func newWebAppResetPasswordSuccessHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -39397,25 +39469,27 @@ func newWebAppSettingsHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -40317,25 +40391,27 @@ func newWebAppSettingsProfileHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -41216,25 +41292,27 @@ func newWebAppSettingsProfileEditHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -42128,25 +42206,27 @@ func newWebAppSettingsIdentityHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -43024,25 +43104,27 @@ func newWebAppSettingsBiometricHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -43913,25 +43995,27 @@ func newWebAppSettingsMFAHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -44810,25 +44894,27 @@ func newWebAppSettingsTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -45699,25 +45785,27 @@ func newWebAppSettingsPasskeyHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -46588,25 +46676,27 @@ func newWebAppSettingsOOBOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -47477,25 +47567,27 @@ func newWebAppSettingsRecoveryCodeHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -48367,25 +48459,27 @@ func newWebAppSettingsSessionsHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -49276,25 +49370,27 @@ func newWebAppForceChangePasswordHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -50170,25 +50266,27 @@ func newWebAppSettingsChangePasswordHandler(p *deps.RequestProvider) http.Handle Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -51059,25 +51157,27 @@ func newWebAppForceChangeSecondaryPasswordHandler(p *deps.RequestProvider) http. Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -51953,25 +52053,27 @@ func newWebAppSettingsChangeSecondaryPasswordHandler(p *deps.RequestProvider) ht Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -52842,25 +52944,27 @@ func newWebAppSettingsDeleteAccountHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -53738,25 +53842,27 @@ func newWebAppSettingsDeleteAccountSuccessHandler(p *deps.RequestProvider) http. Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -54628,25 +54734,27 @@ func newWebAppAccountStatusHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -55516,25 +55624,27 @@ func newWebAppLogoutHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -56420,25 +56530,27 @@ func newWebAppReturnHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -57308,25 +57420,27 @@ func newWebAppErrorHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -58258,25 +58372,27 @@ func newWebAppAuthflowV2ErrorHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -59127,25 +59243,27 @@ func newWebAppNotFoundHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -60015,25 +60133,27 @@ func newWebAppAuthflowV2NotFoundHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -62620,25 +62740,27 @@ func newWebAppConnectWeb3AccountHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -63518,25 +63640,27 @@ func newWebAppMissingWeb3WalletHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -64407,25 +64531,27 @@ func newWebAppFeatureDisabledHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -65295,25 +65421,27 @@ func newWebAppTesterHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -72285,25 +72413,27 @@ func newWebAppAuthflowLoginHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -73241,25 +73371,27 @@ func newWebAppAuthflowV2LoginHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -74209,25 +74341,27 @@ func newWebAppAuthflowSignupHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -75164,25 +75298,27 @@ func newWebAppAuthflowV2SignupHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -76123,25 +76259,27 @@ func newWebAppAuthflowPromoteHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -77061,25 +77199,27 @@ func newWebAppAuthflowV2PromoteHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } authflowViewModeler := &viewmodels.AuthflowViewModeler{ Authentication: authenticationConfig, @@ -77999,25 +78139,27 @@ func newWebAppAuthflowEnterPasswordHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -78930,25 +79072,27 @@ func newWebAppAuthflowV2EnterPasswordHandler(p *deps.RequestProvider) http.Handl Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -79865,25 +80009,27 @@ func newWebAppAuthflowEnterOOBOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -80798,25 +80944,27 @@ func newWebAppAuthflowV2EnterOOBOTPHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } inlinePreviewAuthflowBranchViewModeler := &viewmodels.InlinePreviewAuthflowBranchViewModeler{ AppConfig: appConfig, @@ -81737,25 +81885,27 @@ func newWebAppAuthflowCreatePasswordHandler(p *deps.RequestProvider) http.Handle Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -82668,25 +82818,27 @@ func newWebAppAuthflowV2CreatePasswordHandler(p *deps.RequestProvider) http.Hand Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } inlinePreviewAuthflowBranchViewModeler := &viewmodels.InlinePreviewAuthflowBranchViewModeler{ AppConfig: appConfig, @@ -83605,25 +83757,27 @@ func newWebAppAuthflowEnterTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -84536,25 +84690,27 @@ func newWebAppAuthflowV2EnterTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } inlinePreviewAuthflowBranchViewModeler := &viewmodels.InlinePreviewAuthflowBranchViewModeler{ AppConfig: appConfig, @@ -85471,25 +85627,27 @@ func newWebAppAuthflowSetupTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -86402,25 +86560,27 @@ func newWebAppAuthflowV2SetupTOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -87333,25 +87493,27 @@ func newWebAppAuthflowViewRecoveryCodeHandler(p *deps.RequestProvider) http.Hand Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -88264,25 +88426,27 @@ func newWebAppAuthflowV2ViewRecoveryCodeHandler(p *deps.RequestProvider) http.Ha Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -89195,25 +89359,27 @@ func newWebAppAuthflowWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -90128,25 +90294,27 @@ func newWebAppAuthflowOOBOTPLinkHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -91061,25 +91229,27 @@ func newWebAppAuthflowV2OOBOTPLinkHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } inlinePreviewAuthflowBranchViewModeler := &viewmodels.InlinePreviewAuthflowBranchViewModeler{ AppConfig: appConfig, @@ -91997,25 +92167,27 @@ func newWebAppAuthflowChangePasswordHandler(p *deps.RequestProvider) http.Handle Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } changePasswordViewModeler := &viewmodels.ChangePasswordViewModeler{ Authentication: authenticationConfig, @@ -92933,25 +93105,27 @@ func newWebAppAuthflowV2ChangePasswordHandler(p *deps.RequestProvider) http.Hand Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } changePasswordViewModeler := &viewmodels.ChangePasswordViewModeler{ Authentication: authenticationConfig, @@ -93870,25 +94044,27 @@ func newWebAppAuthflowV2ChangePasswordSuccessHandler(p *deps.RequestProvider) ht Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -94801,25 +94977,27 @@ func newWebAppAuthflowUsePasskeyHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -95732,25 +95910,27 @@ func newWebAppAuthflowV2UsePasskeyHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } inlinePreviewAuthflowBranchViewModeler := &viewmodels.InlinePreviewAuthflowBranchViewModeler{ AppConfig: appConfig, @@ -96667,25 +96847,27 @@ func newWebAppAuthflowPromptCreatePasskeyHandler(p *deps.RequestProvider) http.H Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -97598,25 +97780,27 @@ func newWebAppAuthflowV2PromptCreatePasskeyHandler(p *deps.RequestProvider) http Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -98529,25 +98713,27 @@ func newWebAppAuthflowEnterRecoveryCodeHandler(p *deps.RequestProvider) http.Han Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -99460,25 +99646,27 @@ func newWebAppAuthflowV2EnterRecoveryCodeHandler(p *deps.RequestProvider) http.H Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -100391,25 +100579,27 @@ func newWebAppAuthflowSetupOOBOTPHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -101322,25 +101512,27 @@ func newWebAppAuthflowV2SetupOOBOTPHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -102253,25 +102445,27 @@ func newWebAppAuthflowTerminateOtherSessionsHandler(p *deps.RequestProvider) htt Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -103184,25 +103378,27 @@ func newWebAppAuthflowV2TerminateOtherSessionsHandler(p *deps.RequestProvider) h Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -104115,25 +104311,27 @@ func newWebAppAuthflowWechatHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -105047,25 +105245,27 @@ func newWebAppAuthflowForgotPasswordHandler(p *deps.RequestProvider) http.Handle Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -105978,25 +106178,27 @@ func newWebAppAuthflowV2ForgotPasswordHandler(p *deps.RequestProvider) http.Hand Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -106909,25 +107111,27 @@ func newWebAppAuthflowForgotPasswordOTPHandler(p *deps.RequestProvider) http.Han Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -107842,25 +108046,27 @@ func newWebAppAuthflowV2ForgotPasswordOTPHandler(p *deps.RequestProvider) http.H Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -108775,25 +108981,27 @@ func newWebAppAuthflowForgotPasswordSuccessHandler(p *deps.RequestProvider) http Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -109706,25 +109914,27 @@ func newWebAppAuthflowV2ForgotPasswordLinkSentHandler(p *deps.RequestProvider) h Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -110576,25 +110786,27 @@ func newWebAppReauthHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -113324,25 +113536,27 @@ func newWebAppAuthflowResetPasswordHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -114255,25 +114469,27 @@ func newWebAppAuthflowV2ResetPasswordHandler(p *deps.RequestProvider) http.Handl Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -115186,25 +115402,27 @@ func newWebAppAuthflowResetPasswordSuccessHandler(p *deps.RequestProvider) http. Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -116117,25 +116335,27 @@ func newWebAppAuthflowV2ResetPasswordSuccessHandler(p *deps.RequestProvider) htt Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -116208,6 +116428,7 @@ func newWebAppAuthflowAccountStatusHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -116219,23 +116440,24 @@ func newWebAppAuthflowAccountStatusHandler(p *deps.RequestProvider) http.Handler factory := appProvider.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -116307,6 +116529,7 @@ func newWebAppAuthflowV2AccountStatusHandler(p *deps.RequestProvider) http.Handl Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -116318,23 +116541,24 @@ func newWebAppAuthflowV2AccountStatusHandler(p *deps.RequestProvider) http.Handl factory := appProvider.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -116406,6 +116630,7 @@ func newWebAppAuthflowNoAuthenticatorHandler(p *deps.RequestProvider) http.Handl Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -116417,23 +116642,24 @@ func newWebAppAuthflowNoAuthenticatorHandler(p *deps.RequestProvider) http.Handl factory := appProvider.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -117345,25 +117571,27 @@ func newWebAppAuthflowFinishFlowHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -118276,25 +118504,27 @@ func newWebAppAuthflowV2FinishFlowHandler(p *deps.RequestProvider) http.Handler Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -119207,25 +119437,27 @@ func newWebAppAuthflowV2AccountLinkingHandler(p *deps.RequestProvider) http.Hand Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -119299,6 +119531,7 @@ func newWebAppAuthflowV2NoAuthenticatorHandler(p *deps.RequestProvider) http.Han Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -119310,23 +119543,24 @@ func newWebAppAuthflowV2NoAuthenticatorHandler(p *deps.RequestProvider) http.Han factory := appProvider.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -120238,25 +120472,27 @@ func newWebAppAuthflowV2WechatHandler(p *deps.RequestProvider) http.Handler { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -120324,6 +120560,7 @@ func newRequestMiddleware(w http.ResponseWriter, r *http.Request, p *deps.RootPr Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -120335,23 +120572,24 @@ func newRequestMiddleware(w http.ResponseWriter, r *http.Request, p *deps.RootPr factory := p.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } requestMiddleware := &deps.RequestMiddleware{ HTTPHost: httpHost, @@ -120455,6 +120693,7 @@ func newPanicWebAppMiddleware(p *deps.RequestProvider) httproute.Middleware { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -120465,23 +120704,24 @@ func newPanicWebAppMiddleware(p *deps.RequestProvider) httproute.Middleware { } baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, @@ -120685,6 +120925,7 @@ func newAuthEntryPointMiddleware(p *deps.RequestProvider) httproute.Middleware { Cookies: cookieManager, } authUISentryDSN := environmentConfig.AuthUISentryDSN + authUIWindowMessageAllowedOrigins := environmentConfig.AuthUIWindowMessageAllowedOrigins endpointsEndpoints := &endpoints.Endpoints{ HTTPHost: httpHost, HTTPProto: httpProto, @@ -120696,23 +120937,24 @@ func newAuthEntryPointMiddleware(p *deps.RequestProvider) httproute.Middleware { factory := appProvider.LoggerFactory baseLogger := viewmodels.NewBaseLogger(factory) baseViewModeler := &viewmodels.BaseViewModeler{ - TrustProxy: trustProxy, - OAuth: oAuthConfig, - AuthUI: uiConfig, - AuthUIFeatureConfig: uiFeatureConfig, - StaticAssets: staticAssetResolver, - ForgotPassword: forgotPasswordConfig, - Authentication: authenticationConfig, - GoogleTagManager: googleTagManagerConfig, - ErrorCookie: errorCookie, - Translations: translationService, - Clock: clockClock, - FlashMessage: flashMessage, - DefaultLanguageTag: defaultLanguageTag, - SupportedLanguageTags: supportedLanguageTags, - AuthUISentryDSN: authUISentryDSN, - OAuthClientResolver: oauthclientResolver, - Logger: baseLogger, + TrustProxy: trustProxy, + OAuth: oAuthConfig, + AuthUI: uiConfig, + AuthUIFeatureConfig: uiFeatureConfig, + StaticAssets: staticAssetResolver, + ForgotPassword: forgotPasswordConfig, + Authentication: authenticationConfig, + GoogleTagManager: googleTagManagerConfig, + ErrorCookie: errorCookie, + Translations: translationService, + Clock: clockClock, + FlashMessage: flashMessage, + DefaultLanguageTag: defaultLanguageTag, + SupportedLanguageTags: supportedLanguageTags, + AuthUISentryDSN: authUISentryDSN, + AuthUIWindowMessageAllowedOrigins: authUIWindowMessageAllowedOrigins, + OAuthClientResolver: oauthclientResolver, + Logger: baseLogger, } responseRenderer := &webapp.ResponseRenderer{ TemplateEngine: engine, diff --git a/pkg/lib/config/environment.go b/pkg/lib/config/environment.go index d0ed498230..360e3c9184 100644 --- a/pkg/lib/config/environment.go +++ b/pkg/lib/config/environment.go @@ -10,6 +10,8 @@ type SentryDSN string type AuthUISentryDSN string +type AuthUIWindowMessageAllowedOrigins []string + type ImagesCDNHost string type WebAppCDNHost string @@ -56,6 +58,8 @@ type EnvironmentConfig struct { SentryDSN SentryDSN `envconfig:"SENTRY_DSN"` // AuthUISentryDSN sets the sentry DSN for auth ui. AuthUISentryDSN AuthUISentryDSN `envconfig:"AUTH_UI_SENTRY_DSN"` + // Origins that are allowd to post message to authui + AuthUIWindowMessageAllowedOrigins AuthUIWindowMessageAllowedOrigins `envconfig:"AUTH_UI_WINDOW_MESSAGE_ALLOWED_ORIGINS"` // GlobalDatabase configures the global database GlobalDatabase GlobalDatabaseCredentialsEnvironmentConfig `envconfig:"DATABASE"` // AuditDatabase configures the audit database diff --git a/pkg/lib/deps/deps_provider.go b/pkg/lib/deps/deps_provider.go index e5f044d0d4..239b04586e 100644 --- a/pkg/lib/deps/deps_provider.go +++ b/pkg/lib/deps/deps_provider.go @@ -28,6 +28,7 @@ var envConfigDeps = wire.NewSet( "DevMode", "SentryDSN", "AuthUISentryDSN", + "AuthUIWindowMessageAllowedOrigins", "GlobalDatabase", "DatabaseConfig", "ImagesCDNHost", diff --git a/resources/authgear/templates/en/web/authflowv2/__html_head.html b/resources/authgear/templates/en/web/authflowv2/__html_head.html index c9b404ba20..d420c1aaa4 100644 --- a/resources/authgear/templates/en/web/authflowv2/__html_head.html +++ b/resources/authgear/templates/en/web/authflowv2/__html_head.html @@ -10,6 +10,7 @@ + From eb7b2ec1889a3967c76a1ab774472074f830adda Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 21:35:52 +0800 Subject: [PATCH 05/34] Introduce inline preview controller --- authui/src/authflowv2.ts | 2 + authui/src/inline-review.ts | 39 +++++++++++++++++++ .../en/web/authflowv2/__page_frame.html | 3 +- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 authui/src/inline-review.ts diff --git a/authui/src/authflowv2.ts b/authui/src/authflowv2.ts index 572b03f8d9..0c2bcb7b21 100644 --- a/authui/src/authflowv2.ts +++ b/authui/src/authflowv2.ts @@ -37,6 +37,7 @@ import { AlertMessageController } from "./authflowv2/alert-message"; import { DismissKeyboardOnScrollController } from "./authflowv2/dismissKeyboard"; import { BodyScrollLockController } from "./authflowv2/bodyScrollLock"; import { ClickToSwitchController } from "./clickToSwitch"; +import { InlinePreviewController } from "./inline-review"; axios.defaults.withCredentials = true; @@ -100,5 +101,6 @@ Stimulus.register( ); Stimulus.register("body-scroll-lock", BodyScrollLockController); Stimulus.register("click-to-switch", ClickToSwitchController); +Stimulus.register("inline-preview", InlinePreviewController); injectCSSAttrs(document.documentElement); diff --git a/authui/src/inline-review.ts b/authui/src/inline-review.ts new file mode 100644 index 0000000000..891741d06a --- /dev/null +++ b/authui/src/inline-review.ts @@ -0,0 +1,39 @@ +import { Controller } from "@hotwired/stimulus"; + +export class InlinePreviewController extends Controller { + static values = { + isInlinePreview: Boolean, + }; + + declare isInlinePreviewValue: boolean; + + windowMessageAllowedOrigins!: string[]; + + connect(): void { + if (!this.isInlinePreviewValue) { + return; + } + const windowMessageAllowedOrigins = ((): string[] => { + const meta: HTMLMetaElement | null = document.querySelector( + "meta[name=x-window-message-allowed-origins]" + ); + const content = meta?.content ?? ""; + return content.split(",").map((origin) => origin.trim()); + })(); + this.windowMessageAllowedOrigins = windowMessageAllowedOrigins; + if (windowMessageAllowedOrigins.length === 0) { + return; + } + window.addEventListener("message", this.onReceiveMessage); + } + + disconnect(): void { + window.removeEventListener("message", this.onReceiveMessage); + } + + onReceiveMessage = (e: MessageEvent): void => { + if (!this.windowMessageAllowedOrigins.includes(e.origin)) { + return; + } + }; +} diff --git a/resources/authgear/templates/en/web/authflowv2/__page_frame.html b/resources/authgear/templates/en/web/authflowv2/__page_frame.html index 844567d414..45500fb545 100644 --- a/resources/authgear/templates/en/web/authflowv2/__page_frame.html +++ b/resources/authgear/templates/en/web/authflowv2/__page_frame.html @@ -15,9 +15,10 @@ {{ end }} From fde08658eb470c5e5527cb845df44502ededc6c4 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 22:09:42 +0800 Subject: [PATCH 06/34] Disable retain form when previewing page --- .../authgear/templates/en/web/authflowv2/login.html | 12 +++++++++++- .../authgear/templates/en/web/authflowv2/signup.html | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/resources/authgear/templates/en/web/authflowv2/login.html b/resources/authgear/templates/en/web/authflowv2/login.html index 6f49bf6eb9..bee37907f5 100644 --- a/resources/authgear/templates/en/web/authflowv2/login.html +++ b/resources/authgear/templates/en/web/authflowv2/login.html @@ -76,11 +76,21 @@

) }} + + + + + + + {{ $formController := "retain-form-form" }} + {{ if $.InlinePreview }} + {{ $formController = "" }} + {{ end }}
{{ $.CSRFField }} diff --git a/resources/authgear/templates/en/web/authflowv2/signup.html b/resources/authgear/templates/en/web/authflowv2/signup.html index fbfc4eae48..5f08e289df 100644 --- a/resources/authgear/templates/en/web/authflowv2/signup.html +++ b/resources/authgear/templates/en/web/authflowv2/signup.html @@ -66,11 +66,21 @@

) }} + + + + + + + {{ $formController := "retain-form-form" }} + {{ if $.InlinePreview }} + {{ $formController = "" }} + {{ end }} {{ $.CSRFField }} From be871dd493e65eb64761e0b5fde950f096e6231d Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Tue, 25 Jun 2024 22:10:19 +0800 Subject: [PATCH 07/34] Post design form state to authui --- .../graphql/portal/DesignScreen/DesignScreen.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx index 5a88be1850..70c224e638 100644 --- a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx +++ b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx @@ -1,4 +1,11 @@ -import React, { useCallback, useContext, useMemo, useState } from "react"; +import React, { + useCallback, + useContext, + useEffect, + useMemo, + useRef, + useState, +} from "react"; import { DefaultEffects, Dropdown, @@ -433,6 +440,12 @@ const Preview: React.VFC = function Preview(props) { const { designForm, effectiveAppConfig } = props; const { renderToString } = useContext(MFContext); + const iframeRef = useRef(null); + + useEffect(() => { + iframeRef.current?.contentWindow?.postMessage(designForm.state, "*"); + }, [designForm.state, effectiveAppConfig.http?.public_origin]); + const supportedPreviewPages = useMemo( () => getSupportedPreviewPagesFromConfig(effectiveAppConfig), [effectiveAppConfig] @@ -496,6 +509,7 @@ const Preview: React.VFC = function Preview(props) { /> ); From 78cf405a90a5b1447442dff7c0327fce7024ea75 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Wed, 26 Jun 2024 12:17:50 +0800 Subject: [PATCH 13/34] Fix iframe height --- portal/src/graphql/portal/DesignScreen/DesignScreen.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx index f8dbb2c87a..5653cf84b1 100644 --- a/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx +++ b/portal/src/graphql/portal/DesignScreen/DesignScreen.tsx @@ -437,11 +437,12 @@ const PreviewPageDropdownStyles: IStyleFunctionOrObject< }; interface PreviewProps { + className?: string; effectiveAppConfig: PortalAPIAppConfig; designForm: BranchDesignForm; } const Preview: React.VFC = function Preview(props) { - const { designForm, effectiveAppConfig } = props; + const { className, designForm, effectiveAppConfig } = props; const { renderToString } = useContext(MFContext); const authUIIframeRef = useRef(null); @@ -501,7 +502,7 @@ const Preview: React.VFC = function Preview(props) { }, [designForm.state]); return ( -
+
= function Preview(props) {