From 700260390d7accb0071a18f742f879cc5e1893c7 Mon Sep 17 00:00:00 2001 From: pkong-ds Date: Thu, 29 Aug 2024 03:38:15 +0800 Subject: [PATCH] Run make generate --- cmd/authgear/background/wire_gen.go | 5 +- e2e/cmd/e2e/pkg/wire_gen.go | 5 +- pkg/admin/wire_gen.go | 3 + pkg/auth/wire_gen.go | 277 ++++++++++++++++++++++++++++ pkg/redisqueue/wire_gen.go | 3 + pkg/resolver/wire_gen.go | 3 + 6 files changed, 294 insertions(+), 2 deletions(-) diff --git a/cmd/authgear/background/wire_gen.go b/cmd/authgear/background/wire_gen.go index 895317c207e..c49fcb758d9 100644 --- a/cmd/authgear/background/wire_gen.go +++ b/cmd/authgear/background/wire_gen.go @@ -800,8 +800,10 @@ func newUserService(ctx context.Context, p *deps.BackgroundProvider, appID strin } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -840,5 +842,6 @@ func newUserService(ctx context.Context, p *deps.BackgroundProvider, appID strin } var ( - _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireMaxTrialsValue = password.DefaultMaxTrials ) diff --git a/e2e/cmd/e2e/pkg/wire_gen.go b/e2e/cmd/e2e/pkg/wire_gen.go index 6e330e916c1..91c74e4ef00 100644 --- a/e2e/cmd/e2e/pkg/wire_gen.go +++ b/e2e/cmd/e2e/pkg/wire_gen.go @@ -773,8 +773,10 @@ func newUserImport(p *deps.AppProvider, c context.Context) *userimport.UserImpor } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -840,7 +842,8 @@ func newUserImport(p *deps.AppProvider, c context.Context) *userimport.UserImpor } var ( - _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireMaxTrialsValue = password.DefaultMaxTrials ) func newLoginIDSerivce(p *deps.AppProvider, c context.Context) *loginid.Provider { diff --git a/pkg/admin/wire_gen.go b/pkg/admin/wire_gen.go index 2853fe68617..5d8da8cc556 100644 --- a/pkg/admin/wire_gen.go +++ b/pkg/admin/wire_gen.go @@ -848,8 +848,10 @@ func newGraphQLHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -1179,6 +1181,7 @@ func newGraphQLHandler(p *deps.RequestProvider) http.Handler { var ( _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireMaxTrialsValue = password.DefaultMaxTrials _wireTokenGeneratorValue = handler.TokenGenerator(oauth2.GenerateToken) ) diff --git a/pkg/auth/wire_gen.go b/pkg/auth/wire_gen.go index 791ed131dee..5cabfde247e 100644 --- a/pkg/auth/wire_gen.go +++ b/pkg/auth/wire_gen.go @@ -864,8 +864,10 @@ func newOAuthAuthorizeHandler(p *deps.RequestProvider) http.Handler { CookieDef: cookieDef, } accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -954,6 +956,7 @@ var ( _wireRandValue = idpsession.Rand(rand.SecureRand) _wireScopesValidatorValue = handler.ScopesValidator(oidc.ValidateScopes) _wireTokenGeneratorValue = handler.TokenGenerator(oauth2.GenerateToken) + _wireMaxTrialsValue = password.DefaultMaxTrials ) func newOAuthConsentHandler(p *deps.RequestProvider) http.Handler { @@ -1687,8 +1690,10 @@ func newOAuthConsentHandler(p *deps.RequestProvider) http.Handler { CookieDef: cookieDef, } accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -2494,8 +2499,10 @@ func newOAuthTokenHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -5465,8 +5472,10 @@ func newOAuthAppSessionTokenHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -6500,8 +6509,10 @@ func newAPIAnonymousUserSignupHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -7411,8 +7422,10 @@ func newAPIAnonymousUserPromotionCodeHandler(p *deps.RequestProvider) http.Handl } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -8445,8 +8458,10 @@ func newWebAppLoginHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -9383,8 +9398,10 @@ func newWebAppSignupHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -10320,8 +10337,10 @@ func newWebAppPromoteHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -11245,8 +11264,10 @@ func newWebAppSelectAccountHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -12164,8 +12185,10 @@ func newWebAppAuthflowV2VerifyBotProtectionHandler(p *deps.RequestProvider) http } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -13176,8 +13199,10 @@ func newWebAppAuthflowV2SelectAccountHandler(p *deps.RequestProvider) http.Handl } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -14095,8 +14120,10 @@ func newWebAppSSOCallbackHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -15198,8 +15225,10 @@ func newWebAppAuthflowSSOCallbackHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -16301,8 +16330,10 @@ func newWebAppAuthflowV2SSOCallbackHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -17405,8 +17436,10 @@ func newWechatAuthHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -18315,8 +18348,10 @@ func newWechatCallbackHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -19230,8 +19265,10 @@ func newWebAppEnterLoginIDHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -20147,8 +20184,10 @@ func newWebAppEnterPasswordHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -21061,8 +21100,10 @@ func newWebConfirmTerminateOtherSessionsHandler(p *deps.RequestProvider) http.Ha } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -21973,8 +22014,10 @@ func newWebAppUsePasskeyHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -22887,8 +22930,10 @@ func newWebAppCreatePasswordHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -23802,8 +23847,10 @@ func newWebAppCreatePasskeyHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -24716,8 +24763,10 @@ func newWebAppPromptCreatePasskeyHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -25630,8 +25679,10 @@ func newWebAppSetupTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -26546,8 +26597,10 @@ func newWebAppEnterTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -27460,8 +27513,10 @@ func newWebAppSetupOOBOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -28374,8 +28429,10 @@ func newWebAppEnterOOBOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -29292,8 +29349,10 @@ func newWebAppSetupWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -30206,8 +30265,10 @@ func newWebAppWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -31124,8 +31185,10 @@ func newWebAppSetupLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -32038,8 +32101,10 @@ func newWebAppLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -32960,8 +33025,10 @@ func newWebAppVerifyLoginLinkOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -33896,8 +33963,10 @@ func newWebAppAuthflowV2VerifyLoginLinkOTPHandler(p *deps.RequestProvider) http. } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -34821,8 +34890,10 @@ func newWebAppEnterRecoveryCodeHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -35735,8 +35806,10 @@ func newWebAppSetupRecoveryCodeHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -36645,8 +36718,10 @@ func newWebAppVerifyIdentityHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -37559,8 +37634,10 @@ func newWebAppVerifyIdentitySuccessHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -38469,8 +38546,10 @@ func newWebAppForgotPasswordHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -39389,8 +39468,10 @@ func newWebAppForgotPasswordSuccessHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -40299,8 +40380,10 @@ func newWebAppResetPasswordHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -41211,8 +41294,10 @@ func newWebAppResetPasswordSuccessHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -42121,8 +42206,10 @@ func newWebAppSettingsHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -43063,8 +43150,10 @@ func newWebAppSettingsProfileHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -43984,8 +44073,10 @@ func newWebAppSettingsProfileEditHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -44918,8 +45009,10 @@ func newWebAppSettingsIdentityHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -45836,8 +45929,10 @@ func newWebAppSettingsBiometricHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -46747,8 +46842,10 @@ func newWebAppSettingsMFAHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -47666,8 +47763,10 @@ func newWebAppSettingsTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -48577,8 +48676,10 @@ func newWebAppSettingsPasskeyHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -49488,8 +49589,10 @@ func newWebAppSettingsOOBOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -50399,8 +50502,10 @@ func newWebAppSettingsRecoveryCodeHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -51311,8 +51416,10 @@ func newWebAppSettingsSessionsHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -52245,8 +52352,10 @@ func newWebAppForceChangePasswordHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -53161,8 +53270,10 @@ func newWebAppSettingsChangePasswordHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -54072,8 +54183,10 @@ func newWebAppForceChangeSecondaryPasswordHandler(p *deps.RequestProvider) http. } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -54988,8 +55101,10 @@ func newWebAppSettingsChangeSecondaryPasswordHandler(p *deps.RequestProvider) ht } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -55899,8 +56014,10 @@ func newWebAppSettingsDeleteAccountHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -56821,8 +56938,10 @@ func newWebAppSettingsDeleteAccountSuccessHandler(p *deps.RequestProvider) http. } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -57735,8 +57854,10 @@ func newWebAppAccountStatusHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -58645,8 +58766,10 @@ func newWebAppLogoutHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -59571,8 +59694,10 @@ func newWebAppReturnHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -60481,8 +60606,10 @@ func newWebAppErrorHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -61390,8 +61517,10 @@ func newWebAppAuthflowV2ErrorHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -62401,8 +62530,10 @@ func newWebAppCSRFErrorInstructionHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -63413,8 +63544,10 @@ func newWebAppNotFoundHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -64323,8 +64456,10 @@ func newWebAppAuthflowV2NotFoundHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -65251,8 +65386,10 @@ func newWebAppPasskeyCreationOptionsHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -66119,8 +66256,10 @@ func newWebAppPasskeyRequestOptionsHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -66986,8 +67125,10 @@ func newWebAppConnectWeb3AccountHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -67906,8 +68047,10 @@ func newWebAppMissingWeb3WalletHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -68817,8 +68960,10 @@ func newWebAppFeatureDisabledHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -69727,8 +69872,10 @@ func newWebAppTesterHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -70791,8 +70938,10 @@ func newAPIWorkflowNewHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -71660,8 +71809,10 @@ func newAPIWorkflowGetHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -72490,8 +72641,10 @@ func newAPIWorkflowInputHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -73355,8 +73508,10 @@ func newAPIWorkflowV2Handler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -74224,8 +74379,10 @@ func newAPIAuthenticationFlowV1CreateHandler(p *deps.RequestProvider) http.Handl } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -75164,8 +75321,10 @@ func newAPIAuthenticationFlowV1InputHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -76073,8 +76232,10 @@ func newAPIAuthenticationFlowV1GetHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -77033,8 +77194,10 @@ func newAPIAccountManagementV1IdentificationHandler(p *deps.RequestProvider) htt } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -77754,8 +77917,10 @@ func newAPIAccountManagementV1IdentificationOAuthHandler(p *deps.RequestProvider } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -78466,8 +78631,10 @@ func newWebAppAuthflowLoginHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -79502,8 +79669,10 @@ func newWebAppAuthflowV2LoginHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -80550,8 +80719,10 @@ func newWebAppAuthflowSignupHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -81585,8 +81756,10 @@ func newWebAppAuthflowV2SignupHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -82624,8 +82797,10 @@ func newWebAppAuthflowPromoteHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -83642,8 +83817,10 @@ func newWebAppAuthflowV2PromoteHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -84660,8 +84837,10 @@ func newWebAppAuthflowEnterPasswordHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -85671,8 +85850,10 @@ func newWebAppAuthflowV2EnterPasswordHandler(p *deps.RequestProvider) http.Handl } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -86686,8 +86867,10 @@ func newWebAppAuthflowEnterOOBOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -87699,8 +87882,10 @@ func newWebAppAuthflowV2EnterOOBOTPHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -88718,8 +88903,10 @@ func newWebAppAuthflowCreatePasswordHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -89729,8 +89916,10 @@ func newWebAppAuthflowV2CreatePasswordHandler(p *deps.RequestProvider) http.Hand } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -90746,8 +90935,10 @@ func newWebAppAuthflowEnterTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -91757,8 +91948,10 @@ func newWebAppAuthflowV2EnterTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -92772,8 +92965,10 @@ func newWebAppAuthflowSetupTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -93783,8 +93978,10 @@ func newWebAppAuthflowV2SetupTOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -94794,8 +94991,10 @@ func newWebAppAuthflowViewRecoveryCodeHandler(p *deps.RequestProvider) http.Hand } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -95805,8 +96004,10 @@ func newWebAppAuthflowV2ViewRecoveryCodeHandler(p *deps.RequestProvider) http.Ha } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -96816,8 +97017,10 @@ func newWebAppAuthflowWhatsappOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -97829,8 +98032,10 @@ func newWebAppAuthflowOOBOTPLinkHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -98842,8 +99047,10 @@ func newWebAppAuthflowV2OOBOTPLinkHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -99858,8 +100065,10 @@ func newWebAppAuthflowChangePasswordHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -100874,8 +101083,10 @@ func newWebAppAuthflowV2ChangePasswordHandler(p *deps.RequestProvider) http.Hand } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -101891,8 +102102,10 @@ func newWebAppAuthflowV2ChangePasswordSuccessHandler(p *deps.RequestProvider) ht } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -102902,8 +103115,10 @@ func newWebAppAuthflowUsePasskeyHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -103913,8 +104128,10 @@ func newWebAppAuthflowV2UsePasskeyHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -104928,8 +105145,10 @@ func newWebAppAuthflowPromptCreatePasskeyHandler(p *deps.RequestProvider) http.H } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -105939,8 +106158,10 @@ func newWebAppAuthflowV2PromptCreatePasskeyHandler(p *deps.RequestProvider) http } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -106950,8 +107171,10 @@ func newWebAppAuthflowEnterRecoveryCodeHandler(p *deps.RequestProvider) http.Han } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -107961,8 +108184,10 @@ func newWebAppAuthflowV2EnterRecoveryCodeHandler(p *deps.RequestProvider) http.H } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -108972,8 +109197,10 @@ func newWebAppAuthflowSetupOOBOTPHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -109983,8 +110210,10 @@ func newWebAppAuthflowV2SetupOOBOTPHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -110994,8 +111223,10 @@ func newWebAppAuthflowTerminateOtherSessionsHandler(p *deps.RequestProvider) htt } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -112005,8 +112236,10 @@ func newWebAppAuthflowV2TerminateOtherSessionsHandler(p *deps.RequestProvider) h } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -113016,8 +113249,10 @@ func newWebAppAuthflowWechatHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -114028,8 +114263,10 @@ func newWebAppAuthflowForgotPasswordHandler(p *deps.RequestProvider) http.Handle } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -115039,8 +115276,10 @@ func newWebAppAuthflowV2ForgotPasswordHandler(p *deps.RequestProvider) http.Hand } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -116056,8 +116295,10 @@ func newWebAppAuthflowForgotPasswordOTPHandler(p *deps.RequestProvider) http.Han } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -117069,8 +117310,10 @@ func newWebAppAuthflowV2ForgotPasswordOTPHandler(p *deps.RequestProvider) http.H } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -118082,8 +118325,10 @@ func newWebAppAuthflowForgotPasswordSuccessHandler(p *deps.RequestProvider) http } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -119093,8 +119338,10 @@ func newWebAppAuthflowV2ForgotPasswordLinkSentHandler(p *deps.RequestProvider) h } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -120106,8 +120353,10 @@ func newWebAppReauthHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -121013,8 +121262,10 @@ func newWebAppAuthflowReauthHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -121990,8 +122241,10 @@ func newWebAppAuthflowV2ReauthHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -122967,8 +123220,10 @@ func newWebAppAuthflowResetPasswordHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -123978,8 +124233,10 @@ func newWebAppAuthflowV2ResetPasswordHandler(p *deps.RequestProvider) http.Handl } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -124989,8 +125246,10 @@ func newWebAppAuthflowResetPasswordSuccessHandler(p *deps.RequestProvider) http. } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -126000,8 +126259,10 @@ func newWebAppAuthflowV2ResetPasswordSuccessHandler(p *deps.RequestProvider) htt } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -127320,8 +127581,10 @@ func newWebAppAuthflowFinishFlowHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -128331,8 +128594,10 @@ func newWebAppAuthflowV2FinishFlowHandler(p *deps.RequestProvider) http.Handler } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -129342,8 +129607,10 @@ func newWebAppAuthflowV2AccountLinkingHandler(p *deps.RequestProvider) http.Hand } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -130457,8 +130724,10 @@ func newWebAppAuthflowV2WechatHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -131469,8 +131738,10 @@ func newWebAppAuthflowV2LDAPLoginHandler(p *deps.RequestProvider) http.Handler { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -134326,8 +134597,10 @@ func newSessionMiddleware(p *deps.RequestProvider) httproute.Middleware { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -135074,8 +135347,10 @@ func newWebAppSessionMiddleware(p *deps.RequestProvider) httproute.Middleware { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -136522,8 +136797,10 @@ func newSettingsSubRoutesMiddleware(p *deps.RequestProvider) httproute.Middlewar } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, diff --git a/pkg/redisqueue/wire_gen.go b/pkg/redisqueue/wire_gen.go index 4e9011f0f10..d0213477ecb 100644 --- a/pkg/redisqueue/wire_gen.go +++ b/pkg/redisqueue/wire_gen.go @@ -715,8 +715,10 @@ func newUserImportService(ctx context.Context, p *deps.AppProvider) *userimport. } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -784,6 +786,7 @@ func newUserImportService(ctx context.Context, p *deps.AppProvider) *userimport. var ( _wireSystemClockValue = clock.NewSystemClock() _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireMaxTrialsValue = password.DefaultMaxTrials ) func newElasticsearchService(ctx context.Context, p *deps.AppProvider) *elasticsearch.Service { diff --git a/pkg/resolver/wire_gen.go b/pkg/resolver/wire_gen.go index 03f6e50363d..6b852a26215 100644 --- a/pkg/resolver/wire_gen.go +++ b/pkg/resolver/wire_gen.go @@ -784,8 +784,10 @@ func newSessionMiddleware(p *deps.RequestProvider) httproute.Middleware { } accountDeletionConfig := appConfig.AccountDeletion accountAnonymizationConfig := appConfig.AccountAnonymization + maxTrials := _wireMaxTrialsValue passwordRand := password.NewRandSource() generator := &password.Generator{ + MaxTrials: maxTrials, Checker: passwordChecker, Rand: passwordRand, PasswordConfig: authenticatorPasswordConfig, @@ -867,6 +869,7 @@ func newSessionMiddleware(p *deps.RequestProvider) httproute.Middleware { var ( _wireSystemClockValue = clock.NewSystemClock() _wireRandValue = idpsession.Rand(rand.SecureRand) + _wireMaxTrialsValue = password.DefaultMaxTrials ) func newSessionResolveHandler(p *deps.RequestProvider) http.Handler {