authflowv2

package
v0.0.0-...-ad51b21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthflowV2RouteLogin               = "/login"
	AuthflowV2RouteSignup              = "/signup"
	AuthflowV2RoutePromote             = "/flows/promote_user"
	AuthflowV2RouteReauth              = "/reauth"
	AuthflowV2RouteSelectAccount       = "/authflow/v2/select_account"
	AuthflowV2RouteVerifyBotProtection = "/authflow/v2/verify_bot_protection"
	// AuthflowV2RouteSignupLogin is login because login page has passkey.
	AuthflowV2RouteSignupLogin = AuthflowV2RouteLogin

	AuthflowV2RouteTerminateOtherSessions = "/authflow/v2/terminate_other_sessions"
	// nolint: gosec
	AuthflowV2RoutePromptCreatePasskey = "/authflow/v2/prompt_create_passkey"
	AuthflowV2RouteViewRecoveryCode    = "/authflow/v2/view_recovery_code"
	// nolint: gosec
	AuthflowV2RouteCreatePassword = "/authflow/v2/create_password"
	// nolint: gosec
	AuthflowV2RouteChangePassword = "/authflow/v2/change_password"
	// nolint: gosec
	AuthflowV2RouteChangePasswordSuccess = "/authflow/v2/change_password/success"
	// nolint: gosec
	AuthflowV2RouteEnterPassword     = "/authflow/v2/enter_password"
	AuthflowV2RouteEnterRecoveryCode = "/authflow/v2/enter_recovery_code"
	AuthflowV2RouteEnterOOBOTP       = "/authflow/v2/enter_oob_otp"
	AuthflowV2RouteOOBOTPLink        = "/authflow/v2/oob_otp_link"
	AuthflowV2RouteVerifyLink        = "/authflow/v2/verify_login_link"
	AuthflowV2RouteEnterTOTP         = "/authflow/v2/enter_totp"
	AuthflowV2RouteSetupTOTP         = "/authflow/v2/setup_totp"
	AuthflowV2RouteSetupOOBOTP       = "/authflow/v2/setup_oob_otp"

	AuthflowV2RouteLDAPLogin = "/authflow/v2/ldap_login"
	// nolint: gosec
	AuthflowV2RouteUsePasskey = "/authflow/v2/use_passkey"
	// nolint: gosec
	AuthflowV2RouteForgotPassword = "/authflow/v2/forgot_password"
	// nolint: gosec
	AuthflowV2RouteForgotPasswordOTP = "/authflow/v2/forgot_password/otp"
	// nolint: gosec
	AuthflowV2RouteForgotPasswordLinkSent = "/authflow/v2/forgot_password/link/sent"
	// nolint: gosec
	AuthflowV2RouteResetPassword = "/authflow/v2/reset_password"
	// nolint: gosec
	AuthflowV2RouteResetPasswordSuccess = "/authflow/v2/reset_password/success"
	AuthflowV2RouteWechat               = "/authflow/v2/wechat"
	AuthflowV2RouteAccountLinking       = "/authflow/v2/account_linking"

	SettingsV2RouteSettings                   = "/settings"
	SettingsV2RouteProfilePictureEditSettings = "/settings/profile/picture/edit"

	SettingsV2RouteSettingsProfileGenderEdit = "/settings/profile/gender/edit"

	SettingsV2RouteAdvancedSettings = "/settings/advanced_settings"

	// The following routes are dead ends.
	AuthflowV2RouteAccountStatus   = "/authflow/v2/account_status"
	AuthflowV2RouteNoAuthenticator = "/authflow/v2/no_authenticator"

	AuthflowV2RouteFinishFlow = "/authflow/v2/finish"

	AuthflowV2RouteSettingsProfile             = "/settings/v2/profile"
	AuthflowV2RouteSettingsMFA                 = "/settings/mfa"
	AuthflowV2RouteSettingsMFAViewRecoveryCode = "/settings/mfa/view_recovery_code"

	// nolint: gosec
	AuthflowV2RouteSettingsMFACreatePassword = "/settings/mfa/create_password"
	AuthflowV2RouteSettingsMFACreateOOBOTP   = "/settings/mfa/create_oob_otp_:channel"
	AuthflowV2RouteSettingsMFAEnterOOBOTP    = "/settings/mfa/enter_oob_otp"
	// nolint: gosec
	AuthflowV2RouteSettingsMFAPassword = "/settings/mfa/password"
	// nolint: gosec
	AuthflowV2RouteSettingsMFAChangePassword = "/settings/mfa/change_password"
	AuthflowV2RouteSettingsMFACreateTOTP     = "/settings/mfa/create_totp"
	AuthflowV2RouteSettingsMFAEnterTOTP      = "/settings/mfa/enter_totp"

	AuthflowV2RouteSettingsIdentityListEmail          = "/settings/identity/email"
	AuthflowV2RouteSettingsIdentityAddEmail           = "/settings/identity/add_email"
	AuthflowV2RouteSettingsIdentityChangeEmail        = "/settings/identity/change_email"
	AuthflowV2RouteSettingsIdentityViewEmail          = "/settings/identity/view_email"
	AuthflowV2RouteSettingsIdentityChangePrimaryEmail = "/settings/identity/change_primary_email"
	AuthflowV2RouteSettingsIdentityVerifyEmail        = "/settings/identity/verify_email"

	AuthflowV2RouteSettingsIdentityListPhone          = "/settings/identity/phone"
	AuthflowV2RouteSettingsIdentityAddPhone           = "/settings/identity/add_phone"
	AuthflowV2RouteSettingsIdentityChangePhone        = "/settings/identity/change_phone"
	AuthflowV2RouteSettingsIdentityViewPhone          = "/settings/identity/view_phone"
	AuthflowV2RouteSettingsIdentityChangePrimaryPhone = "/settings/identity/change_primary_phone"
	AuthflowV2RouteSettingsIdentityVerifyPhone        = "/settings/identity/verify_phone"

	AuthflowV2RouteSettingsIdentityListUsername   = "/settings/identity/username"
	AuthflowV2RouteSettingsIdentityAddUsername    = "/settings/identity/add_username"
	AuthflowV2RouteSettingsIdentityViewUsername   = "/settings/identity/view_username"
	AuthflowV2RouteSettingsIdentityChangeUsername = "/settings/identity/change_username"

	AuthflowV2RouteSettingsIdentityListOAuth     = "/settings/identity/oauth"
	AuthflowV2RouteSettingsIdentityOAuthCallback = "/settings/identity/oauth/callback"
)
View Source
const LoginLinkOTPPageQueryStateKey = "state"

Variables

View Source
var AuthflowChangePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_new_password": { "type": "string" },
			"x_confirm_password": { "type": "string" }
		},
		"required": ["x_new_password", "x_confirm_password"]
	}
`)
View Source
var AuthflowCreatePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_password": { "type": "string" },
			"x_confirm_password": { "type": "string" }
		},
		"required": ["x_password", "x_confirm_password"]
	}
`)
View Source
var AuthflowEnterOOBOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": {
				"type": "string",
				"format": "x_oob_otp_code"
			}
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowEnterPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_password": { "type": "string" }
		},
		"required": ["x_password"]
	}
`)
View Source
var AuthflowEnterRecoveryCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_recovery_code": {
				"type": "string",
				"format": "x_recovery_code"
			}
		},
		"required": ["x_recovery_code"]
	}
`)
View Source
var AuthflowEnterTOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": { "type": "string" }
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowForgotPasswordOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": {
				"type": "string",
				"format": "x_oob_otp_code"
			}
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowLDAPLoginSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_username": { "type": "string" },
			"x_password": { "type": "string" }
		},
		"required": ["x_username", "x_password"]
	}
`)
View Source
var AuthflowLoginLoginIDSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id": { "type": "string" },
			"x_login_id_input_type": { "type": "string" }
		},
		"required": ["x_login_id", "x_login_id_input_type"]
	}
`)
View Source
var AuthflowPromoteLoginIDSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"q_login_id_key": { "type": "string" },
			"q_login_id": { "type": "string" }
		},
		"required": ["q_login_id_key", "q_login_id"]
	}
`)
View Source
var AuthflowResetPasswordSchema = validation.NewSimpleSchema(`
{
  "type": "object",
  "properties": {
    "x_password": { "type": "string" },
    "x_confirm_password": { "type": "string" }
  },
  "required": ["x_password", "x_confirm_password"]
}
`)
View Source
var AuthflowSetupOOBOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_target": { "type": "string" }
		},
		"required": ["x_target"]
	}
`)
View Source
var AuthflowSetupTOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": { "type": "string" }
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowV2AccountLinkingIdentifySchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_index": { "type": "string" }
		},
		"required": ["x_index"]
	}
`)
View Source
var AuthflowV2ForgotPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id": { "type": "string" },
			"x_login_id_type": { "type": "string", "enum": ["phone", "email"] }
		},
		"required": ["x_login_id", "x_login_id_type"]
	}
`)
View Source
var AuthflowV2SettingsChangePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_old_password": { "type": "string" },
			"x_new_password": { "type": "string" },
			"x_confirm_password": { "type": "string" }
		},
		"required": ["x_old_password", "x_new_password", "x_confirm_password"]
	}
`)
View Source
var AuthflowV2SettingsIdentityAddEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id": { "type": "string" }
		},
		"required": ["x_login_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityAddPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_channel": { "type": "string" },
			"x_login_id": { "type": "string" }
		},
		"required": ["x_channel", "x_login_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityDeleteUsernameSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id_key": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_identity_id", "x_login_id_key"]
	}
`)
View Source
var AuthflowV2SettingsIdentityEditEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_login_id", "x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityEditPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_channel": { "type": "string" },
			"x_login_id": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_channel", "x_login_id", "x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityEditUsernameSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id_key": { "type": "string" },
			"x_login_id": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_login_id_key", "x_login_id", "x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityNewUsernameSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id_key": { "type": "string" },
			"x_login_id": { "type": "string" }
		},
		"required": ["x_login_id_key", "x_login_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityResendEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"q_token": { "type": "string" }
		},
		"required": ["q_token"]
	}
`)
View Source
var AuthflowV2SettingsIdentityResendOOBOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"q_token": { "type": "string" }
		},
		"required": ["q_token"]
	}
`)
View Source
var AuthflowV2SettingsIdentityResendPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"q_token": { "type": "string" }
		},
		"required": ["q_token"]
	}
`)
View Source
var AuthflowV2SettingsIdentityUpdateVerificationEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_login_id", "x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsIdentityVerifyEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id_key": { "type": "string" },
			"q_token": { "type": "string" },
			"x_code": { "type": "string" }
		},
		"required": ["x_login_id_key", "q_token", "x_code"]
	}
`)
View Source
var AuthflowV2SettingsIdentityVerifyPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_login_id_key": { "type": "string" },
			"x_code": { "type": "string" }
		},
		"required": ["x_login_id_key", "x_code"]
	}
`)
View Source
var AuthflowV2SettingsMFAChangePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_old_password": { "type": "string" },
			"x_new_password": { "type": "string" },
			"x_confirm_password": { "type": "string" }
		},
		"required": ["x_old_password", "x_new_password", "x_confirm_password"]
	}
`)
View Source
var AuthflowV2SettingsMFACreateOOBOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_channel": { "type": "string" },
			"x_target": { "type": "string" }
		},
		"required": ["x_channel", "x_target"]
	}
`)
View Source
var AuthflowV2SettingsMFACreatePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_password": { "type": "string" },
			"x_confirm_password": { "type": "string" }
		},
		"required": ["x_password", "x_confirm_password"]
	}
`)
View Source
var AuthflowV2SettingsMFACreateTOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_totp": { "type": "string" },
			"x_confirm_totp": { "type": "string" }
		},
		"required": ["x_totp", "x_confirm_totp"]
	}
`)
View Source
var AuthflowV2SettingsMFAEnterOOBOTP = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": {
				"type": "string",
				"format": "x_oob_otp_code"
			}
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowV2SettingsMFAEnterTOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_code": { "type": "string" }
		},
		"required": ["x_code"]
	}
`)
View Source
var AuthflowV2SettingsRemoveIdentityEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsRemoveIdentityPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_identity_id"]
	}
`)
View Source
var AuthflowV2SettingsUpdateIdentityVerificationPhoneSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_channel": { "type": "string" },
			"x_login_id": { "type": "string" },
			"x_identity_id": { "type": "string" }
		},
		"required": ["x_channel", "x_login_id", "x_identity_id"]
	}
`)
View Source
var AuthflowV2SignupLoginIDSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"q_login_id_key": { "type": "string" },
			"q_login_id": { "type": "string" }
		},
		"required": ["q_login_id_key", "q_login_id"]
	}
`)
View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(AuthflowV2Navigator), "*"),
	wire.Struct(new(InternalAuthflowV2SignupLoginHandler), "*"),
	wire.Struct(new(AuthflowV2LoginHandler), "*"),
	wire.Struct(new(AuthflowV2SignupHandler), "*"),
	wire.Struct(new(AuthflowV2ReauthHandler), "*"),
	wire.Struct(new(AuthflowV2EnterPasswordHandler), "*"),
	wire.Struct(new(AuthflowV2EnterOOBOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SetupOOBOTPHandler), "*"),
	wire.Struct(new(AuthflowV2ViewRecoveryCodeHandler), "*"),
	wire.Struct(new(AuthflowV2ErrorHandler), "*"),
	wire.Struct(new(AuthflowV2NoAuthenticatorHandler), "*"),
	wire.Struct(new(AuthflowV2CreatePasswordHandler), "*"),
	wire.Struct(new(AuthflowV2AccountStatusHandler), "*"),
	wire.Struct(new(AuthflowV2NotFoundHandler), "*"),
	wire.Struct(new(AuthflowV2SelectAccountHandler), "*"),
	wire.Struct(new(AuthflowV2VerifyBotProtectionHandler), "*"),
	wire.Struct(new(AuthflowV2EnterRecoveryCodeHandler), "*"),
	wire.Struct(new(AuthflowV2ChangePasswordHandler), "*"),
	wire.Struct(new(AuthflowV2ChangePasswordSuccessHandler), "*"),
	wire.Struct(new(AuthflowV2ForgotPasswordHandler), "*"),
	wire.Struct(new(AuthflowV2ForgotPasswordLinkSentHandler), "*"),
	wire.Struct(new(AuthflowV2ForgotPasswordOTPHandler), "*"),
	wire.Struct(new(AuthflowV2ResetPasswordHandler), "*"),
	wire.Struct(new(AuthflowV2ResetPasswordSuccessHandler), "*"),
	wire.Struct(new(AuthflowV2SetupTOTPHandler), "*"),
	wire.Struct(new(AuthflowV2EnterTOTPHandler), "*"),
	wire.Struct(new(AuthflowV2OOBOTPLinkHandler), "*"),
	wire.Struct(new(AuthflowV2VerifyLoginLinkOTPHandler), "*"),
	wire.Struct(new(AuthflowV2PromptCreatePasskeyHandler), "*"),
	wire.Struct(new(AuthflowV2UsePasskeyHandler), "*"),
	wire.Struct(new(AuthflowV2TerminateOtherSessionsHandler), "*"),
	wire.Struct(new(AuthflowV2PromoteHandler), "*"),
	wire.Struct(new(AuthflowV2FinishFlowHandler), "*"),
	wire.Struct(new(AuthflowV2WechatHandler), "*"),
	wire.Struct(new(AuthflowV2AccountLinkingHandler), "*"),
	wire.Struct(new(AuthflowV2LDAPLoginHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsProfileHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsProfileEditHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsChangePasswordHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsChangePasskeyHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsBiometricHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsSessionsHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsAdvancedSettingsHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsDeleteAccountHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsDeleteAccountSuccessHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAViewRecoveryCodeHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFACreatePasswordHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAChangePasswordHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAPasswordHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsTOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFACreateTOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAEnterTOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsOOBOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFACreateOOBOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsMFAEnterOOBOTPHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityAddEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityEditEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityVerifyEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityListEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityViewEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityChangePrimaryEmailHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityListPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityViewPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityAddPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityEditPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityChangePrimaryPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityVerifyPhoneHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityListUsernameHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityNewUsernameHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityViewUsernameHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityEditUsernameHandler), "*"),
	wire.Struct(new(AuthflowV2SettingsIdentityListOAuthHandler), "*"),
)
View Source
var TemplateSettingsIdentityEditUsernameTemplate = template.RegisterHTML(
	"web/authflowv2/settings_identity_edit_username.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateSettingsIdentityListUsernameTemplate = template.RegisterHTML(
	"web/authflowv2/settings_identity_list_username.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateSettingsIdentityNewUsernameTemplate = template.RegisterHTML(
	"web/authflowv2/settings_identity_new_username.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateSettingsIdentityViewUsernameTemplate = template.RegisterHTML(
	"web/authflowv2/settings_identity_view_username.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateSettingsProfileNoPermission = template.RegisterHTML(
	"web/authflowv2/settings_profile_no_permission.html",
	handlerwebapp.Components...,
)
View Source
var TemplateSettingsV2PasskeyHTML = template.RegisterHTML(
	"web/authflowv2/settings_passkey.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebAuthflowAccountStatusHTML = template.RegisterHTML(
	"web/authflowv2/account_status.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowChangePasswordHTML = template.RegisterHTML(
	"web/authflowv2/change_password.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowChangePasswordSuccessHTML = template.RegisterHTML(
	"web/authflowv2/change_password_success.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowCreatePasswordHTML = template.RegisterHTML(
	"web/authflowv2/create_password.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowEnterOOBOTPHTML = template.RegisterHTML(
	"web/authflowv2/enter_oob_otp.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowEnterPasswordHTML = template.RegisterHTML(
	"web/authflowv2/enter_password.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowEnterRecoveryCodeHTML = template.RegisterHTML(
	"web/authflowv2/enter_recovery_code.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowEnterTOTPHTML = template.RegisterHTML(
	"web/authflowv2/enter_totp.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowForgotPasswordOTPHTML = template.RegisterHTML(
	"web/authflowv2/forgot_password_otp.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowLDAPLoginHTML = template.RegisterHTML(
	"web/authflowv2/ldap_login.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowLoginHTML = template.RegisterHTML(
	"web/authflowv2/login.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowOOBOTPLinkHTML = template.RegisterHTML(
	"web/authflowv2/oob_otp_link.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowPromptCreatePasskeyHTML = template.RegisterHTML(
	"web/authflowv2/prompt_create_passkey.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowResetPasswordHTML = template.RegisterHTML(
	"web/authflowv2/reset_password.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowResetPasswordSuccessHTML = template.RegisterHTML(
	"web/authflowv2/reset_password_success.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowSetupOOBOTPHTML = template.RegisterHTML(
	"web/authflowv2/setup_oob_otp.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowSetupTOTPHTML = template.RegisterHTML(
	"web/authflowv2/setup_totp.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowSetupTOTPVerifyHTML = template.RegisterHTML(
	"web/authflowv2/setup_totp_verify.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowTerminateOtherSessionsHTML = template.RegisterHTML(
	"web/authflowv2/terminate_other_sessions.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowUsePasskeyHTML = template.RegisterHTML(
	"web/authflowv2/use_passkey.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowV2AccountLinkingHTML = template.RegisterHTML(
	"web/authflowv2/account_linking.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowV2ForgotPasswordHTML = template.RegisterHTML(
	"web/authflowv2/forgot_password.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowV2ForgotPasswordLinkSentHTML = template.RegisterHTML(
	"web/authflowv2/forgot_password_link_sent.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowV2NoAuthenticatorHTML = template.RegisterHTML(
	"web/authflowv2/no_authenticator.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowV2SignupHTML = template.RegisterHTML(
	"web/authflowv2/signup.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowVerifyBotProtectionHTML = template.RegisterHTML(
	"web/authflowv2/verify_bot_protection.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowViewRecoveryCodeHTML = template.RegisterHTML(
	"web/authflowv2/view_recovery_code.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebAuthflowWechatHTML = template.RegisterHTML(
	"web/authflowv2/wechat.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebFatalErrorHTML = handlerwebapp.TemplateV2WebFatalErrorHTML
View Source
var TemplateWebNotFoundHTML = template.RegisterHTML(
	"web/authflowv2/not_found.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebSelectAccountHTML = template.RegisterHTML(
	"web/authflowv2/select_account.html",
	handlerwebapp.Components...,
)
View Source
var TemplateWebSettingsIdentityAddEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_add_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityAddPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_add_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityChangePrimaryEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_change_primary_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityChangePrimaryPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_change_primary_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityEditEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_edit_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityEditPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_edit_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityListEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_list_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityListOAuthHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_list_oauth.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityListPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_list_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityVerifyEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_verify_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityVerifyPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_verify_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityViewEmailHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_view_email.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsIdentityViewPhoneHTML = template.RegisterHTML(
	"web/authflowv2/settings_identity_view_phone.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFACreateOOBOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_create_oob_otp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFACreatePasswordHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_create_password.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFACreateTOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_create_totp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFAEnterOOBOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_enter_oob_otp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFAEnterTOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_enter_totp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFAHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFAPasswordHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_password.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsMFAViewRecoveryCodeHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_view_recovery_code.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsOOBOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_oob_otp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsProfileHTML = template.RegisterHTML(
	"web/authflowv2/settings_profile.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsTOTPHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_totp.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2AdvancedSettingsHTML = template.RegisterHTML(
	"web/authflowv2/settings_advanced.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2BiometricHTML = template.RegisterHTML(
	"web/authflowv2/settings_biometric.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2ChangePasswordHTML = template.RegisterHTML(
	"web/authflowv2/settings_change_password.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2DeleteAccountHTML = template.RegisterHTML(
	"web/authflowv2/settings_delete_account.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2DeleteAccountSuccessHTML = template.RegisterHTML(
	"web/authflowv2/settings_delete_account_success.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2HTML = template.RegisterHTML(
	"web/authflowv2/settings.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2MFAChangePasswordHTML = template.RegisterHTML(
	"web/authflowv2/settings_mfa_change_password.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebSettingsV2SessionsHTML = template.RegisterHTML(
	"web/authflowv2/settings_sessions.html",
	handlerwebapp.SettingsComponents...,
)
View Source
var TemplateWebVerifyLoginLinkOTPHTML = template.RegisterHTML(
	"web/authflowv2/verify_login_link.html",
	handlerwebapp.Components...,
)
View Source
var VerifyLoginLinkOTPSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"properties": {
			"x_oob_otp_code": { "type": "string" }
		},
		"required": ["x_oob_otp_code"]
	}
`)

Functions

func ConfigureAuthflowV2AccountLinkingRoute

func ConfigureAuthflowV2AccountLinkingRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2AccountStatusRoute

func ConfigureAuthflowV2AccountStatusRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ChangePasswordSuccessRoute

func ConfigureAuthflowV2ChangePasswordSuccessRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2CreatePasswordRoute

func ConfigureAuthflowV2CreatePasswordRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2EnterOOBOTPRoute

func ConfigureAuthflowV2EnterOOBOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2EnterPasswordRoute

func ConfigureAuthflowV2EnterPasswordRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2EnterRecoveryCodeRoute

func ConfigureAuthflowV2EnterRecoveryCodeRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2EnterTOTPRoute

func ConfigureAuthflowV2EnterTOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ErrorRoute

func ConfigureAuthflowV2ErrorRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ForgotPasswordLinkSentRoute

func ConfigureAuthflowV2ForgotPasswordLinkSentRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ForgotPasswordOTPRoute

func ConfigureAuthflowV2ForgotPasswordOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ForgotPasswordRoute

func ConfigureAuthflowV2ForgotPasswordRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2LDAPLoginRoute

func ConfigureAuthflowV2LDAPLoginRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2NoAuthenticatorRoute

func ConfigureAuthflowV2NoAuthenticatorRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2PreviewRoute

func ConfigureAuthflowV2PreviewRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2PromoteRoute

func ConfigureAuthflowV2PromoteRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2PromptCreatePasskeyRoute

func ConfigureAuthflowV2PromptCreatePasskeyRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ReauthRoute

func ConfigureAuthflowV2ReauthRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ResetPasswordRoute

func ConfigureAuthflowV2ResetPasswordRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ResetPasswordSuccessRoute

func ConfigureAuthflowV2ResetPasswordSuccessRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SelectAccountRoute

func ConfigureAuthflowV2SelectAccountRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityAddEmailRoute

func ConfigureAuthflowV2SettingsIdentityAddEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityAddPhoneRoute

func ConfigureAuthflowV2SettingsIdentityAddPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityChangePrimaryEmailRoute

func ConfigureAuthflowV2SettingsIdentityChangePrimaryEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityChangePrimaryPhoneRoute

func ConfigureAuthflowV2SettingsIdentityChangePrimaryPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityEditEmailRoute

func ConfigureAuthflowV2SettingsIdentityEditEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityEditPhoneRoute

func ConfigureAuthflowV2SettingsIdentityEditPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityEditUsername

func ConfigureAuthflowV2SettingsIdentityEditUsername(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityListEmailRoute

func ConfigureAuthflowV2SettingsIdentityListEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityListOAuthRoute

func ConfigureAuthflowV2SettingsIdentityListOAuthRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityListPhoneRoute

func ConfigureAuthflowV2SettingsIdentityListPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityListUsername

func ConfigureAuthflowV2SettingsIdentityListUsername(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityNewUsername

func ConfigureAuthflowV2SettingsIdentityNewUsername(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityVerifyEmailRoute

func ConfigureAuthflowV2SettingsIdentityVerifyEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityVerifyPhoneRoute

func ConfigureAuthflowV2SettingsIdentityVerifyPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityViewEmailRoute

func ConfigureAuthflowV2SettingsIdentityViewEmailRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityViewPhoneRoute

func ConfigureAuthflowV2SettingsIdentityViewPhoneRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsIdentityViewUsername

func ConfigureAuthflowV2SettingsIdentityViewUsername(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFAChangePassword

func ConfigureAuthflowV2SettingsMFAChangePassword(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFACreateOOBOTPRoute

func ConfigureAuthflowV2SettingsMFACreateOOBOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFACreatePassword

func ConfigureAuthflowV2SettingsMFACreatePassword(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFACreateTOTPRoute

func ConfigureAuthflowV2SettingsMFACreateTOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFAEnterOOBOTPRoute

func ConfigureAuthflowV2SettingsMFAEnterOOBOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFAEnterTOTPRoute

func ConfigureAuthflowV2SettingsMFAEnterTOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFAPassword

func ConfigureAuthflowV2SettingsMFAPassword(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SettingsMFAViewRecoveryCodeRoute

func ConfigureAuthflowV2SettingsMFAViewRecoveryCodeRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SetupOOBOTPRoute

func ConfigureAuthflowV2SetupOOBOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2SetupTOTPRoute

func ConfigureAuthflowV2SetupTOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2TerminateOtherSessionsRoute

func ConfigureAuthflowV2TerminateOtherSessionsRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2UsePasskeyRoute

func ConfigureAuthflowV2UsePasskeyRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2VerifyBotProtectionRoute

func ConfigureAuthflowV2VerifyBotProtectionRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2VerifyLoginLinkOTPRoute

func ConfigureAuthflowV2VerifyLoginLinkOTPRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2ViewRecoveryCodeRoute

func ConfigureAuthflowV2ViewRecoveryCodeRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowV2WechatRoute

func ConfigureAuthflowV2WechatRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowv2ChangePasswordRoute

func ConfigureAuthflowv2ChangePasswordRoute(route httproute.Route) httproute.Route

func ConfigureAuthflowv2FinishFlowRoute

func ConfigureAuthflowv2FinishFlowRoute(route httproute.Route) httproute.Route

func ConfigureSettingsV2AdvancedSettingsRoute

func ConfigureSettingsV2AdvancedSettingsRoute(route httproute.Route) httproute.Route

func ConfigureSettingsV2Route

func ConfigureSettingsV2Route(route httproute.Route) httproute.Route

func ConfigureV2AuthflowOOBOTPLinkRoute

func ConfigureV2AuthflowOOBOTPLinkRoute(route httproute.Route) httproute.Route

func PatchGenderForm

func PatchGenderForm(form url.Values)

Types

type AuthFlowV2ForgotPasswordAlternative

type AuthFlowV2ForgotPasswordAlternative struct {
	AlternativeType AuthFlowV2ForgotPasswordAlternativeType
	Href            string
}

type AuthFlowV2ForgotPasswordAlternativeType

type AuthFlowV2ForgotPasswordAlternativeType string
const (
	AuthFlowV2ForgotPasswordAlternativeTypeEmail AuthFlowV2ForgotPasswordAlternativeType = "email"
	AuthFlowV2ForgotPasswordAlternativeTypePhone AuthFlowV2ForgotPasswordAlternativeType = "phone"
)

type AuthFlowV2ForgotPasswordViewModel

type AuthFlowV2ForgotPasswordViewModel struct {
	LoginIDInputType     ForgotPasswordLoginIDInputType
	LoginID              string
	LoginIDDisabled      bool
	RequiresLoginIDInput bool
	Alternatives         []*AuthFlowV2ForgotPasswordAlternative

	// These overrides AuthflowViewModel
	PhoneLoginIDEnabled   bool
	EmailLoginIDEnabled   bool
	LoginIDContextualType string // "email", "phone"
}

func NewAuthFlowV2ForgotPasswordViewModel

func NewAuthFlowV2ForgotPasswordViewModel(
	r *http.Request,
	initialScreen *webapp.AuthflowScreenWithFlowResponse,
	selectDestinationScreen *webapp.AuthflowScreenWithFlowResponse) AuthFlowV2ForgotPasswordViewModel

type AuthenticationFlowWebsocketEventStore

type AuthenticationFlowWebsocketEventStore interface {
	Publish(websocketChannelName string, e authflow.Event) error
}

type AuthflowCreatePasswordViewModel

type AuthflowCreatePasswordViewModel struct {
	AuthenticationStage     string
	PasswordManagerUsername string
	ForgotPasswordInputType string
	ForgotPasswordLoginID   string
}

type AuthflowEnterOOBOTPViewModel

type AuthflowEnterOOBOTPViewModel struct {
	FlowActionType                 string
	Channel                        string
	MaskedClaimValue               string
	CodeLength                     int
	FailedAttemptRateLimitExceeded bool
	ResendCooldown                 int
}

func NewInlinePreviewAuthflowEnterOOBOTPViewModel

func NewInlinePreviewAuthflowEnterOOBOTPViewModel(
	authenticatorConfig *config.AuthenticatorConfig,
	identityConfig *config.IdentityConfig,
) AuthflowEnterOOBOTPViewModel

type AuthflowEnterPasswordViewModel

type AuthflowEnterPasswordViewModel struct {
	AuthenticationStage     string
	PasswordManagerUsername string
	ForgotPasswordInputType string
	ForgotPasswordLoginID   string
	IsBotProtectionRequired bool
}

func NewInlinePreviewAuthflowEnterPasswordViewModel

func NewInlinePreviewAuthflowEnterPasswordViewModel() AuthflowEnterPasswordViewModel

type AuthflowForgotPasswordOTPAlternativeChannel

type AuthflowForgotPasswordOTPAlternativeChannel struct {
	Index   int
	Channel declarative.AccountRecoveryChannel
}

type AuthflowForgotPasswordOTPViewModel

type AuthflowForgotPasswordOTPViewModel struct {
	Channel                        declarative.AccountRecoveryChannel
	MaskedClaimValue               string
	CodeLength                     int
	FailedAttemptRateLimitExceeded bool
	ResendCooldown                 int
	AlternativeChannels            []AuthflowForgotPasswordOTPAlternativeChannel
}

type AuthflowLDAPLoginViewModel

type AuthflowLDAPLoginViewModel struct {
	LDAPServerName string
}

func NewAuthflowLDAPLoginViewModel

func NewAuthflowLDAPLoginViewModel(ldapServerName string, apiError *apierrors.APIError) AuthflowLDAPLoginViewModel

nolint: gocognit

type AuthflowLoginEndpointsProvider

type AuthflowLoginEndpointsProvider interface {
	SSOCallbackURL(alias string) *url.URL
}

type AuthflowLoginViewModel

type AuthflowLoginViewModel struct {
	AllowLoginOnly bool
}

func NewAuthflowLoginViewModel

func NewAuthflowLoginViewModel(allowLoginOnly bool) AuthflowLoginViewModel

type AuthflowOOBOTPLinkViewModel

type AuthflowOOBOTPLinkViewModel struct {
	WebsocketURL     htmltemplate.URL
	StateToken       string
	StateQuery       handlerwebapp.LoginLinkOTPPageQueryState
	MaskedClaimValue string
	ResendCooldown   int
}

func NewInlinePreviewAuthflowOOBOTPLinkViewModel

func NewInlinePreviewAuthflowOOBOTPLinkViewModel() AuthflowOOBOTPLinkViewModel

type AuthflowSetupOOBOTPViewModel

type AuthflowSetupOOBOTPViewModel struct {
	OOBAuthenticatorType    model.AuthenticatorType
	Channel                 model.AuthenticatorOOBChannel
	IsBotProtectionRequired bool
}

type AuthflowSetupTOTPViewModel

type AuthflowSetupTOTPViewModel struct {
	Secret   string
	ImageURI htmltemplate.URL
}

type AuthflowV2AccountLinkingHandler

type AuthflowV2AccountLinkingHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
	Endpoints     handlerwebapp.AuthflowSignupEndpointsProvider
}

func (*AuthflowV2AccountLinkingHandler) GetData

func (*AuthflowV2AccountLinkingHandler) ServeHTTP

type AuthflowV2AccountLinkingOption

type AuthflowV2AccountLinkingOption struct {
	Identification    config.AuthenticationFlowIdentification
	MaskedDisplayName string
	ProviderType      string
	Index             int
}

type AuthflowV2AccountLinkingViewModel

type AuthflowV2AccountLinkingViewModel struct {
	Options []AuthflowV2AccountLinkingOption
}

type AuthflowV2AccountStatusHandler

type AuthflowV2AccountStatusHandler struct {
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2AccountStatusHandler) ServeHTTP

type AuthflowV2ChangePasswordHandler

type AuthflowV2ChangePasswordHandler struct {
	Controller              *handlerwebapp.AuthflowController
	Navigator               AuthflowV2ChangePasswordNavigator
	BaseViewModel           *viewmodels.BaseViewModeler
	ChangePasswordViewModel *viewmodels.ChangePasswordViewModeler
	Renderer                handlerwebapp.Renderer
}

func (*AuthflowV2ChangePasswordHandler) GetData

func (*AuthflowV2ChangePasswordHandler) ServeHTTP

type AuthflowV2ChangePasswordNavigator

type AuthflowV2ChangePasswordNavigator interface {
	NavigateChangePasswordSuccessPage(s *webapp.AuthflowScreen, r *http.Request, webSessionID string) (result *webapp.Result)
}

type AuthflowV2ChangePasswordSuccessHandler

type AuthflowV2ChangePasswordSuccessHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2ChangePasswordSuccessHandler) GetData

func (h *AuthflowV2ChangePasswordSuccessHandler) GetData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2ChangePasswordSuccessHandler) ServeHTTP

type AuthflowV2ChangePasswordSuccessViewModel

type AuthflowV2ChangePasswordSuccessViewModel struct {
	CanBackToSignIn bool
}

type AuthflowV2CreatePasswordHandler

type AuthflowV2CreatePasswordHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
	Renderer                               handlerwebapp.Renderer
	FeatureConfig                          *config.FeatureConfig
	AuthenticatorConfig                    *config.AuthenticatorConfig
}

func (*AuthflowV2CreatePasswordHandler) GetData

func (*AuthflowV2CreatePasswordHandler) GetInlinePreviewData

func (h *AuthflowV2CreatePasswordHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2CreatePasswordHandler) ServeHTTP

type AuthflowV2EnterOOBOTPHandler

type AuthflowV2EnterOOBOTPHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
	Renderer                               handlerwebapp.Renderer
	FlashMessage                           handlerwebapp.FlashMessage
	Clock                                  clock.Clock
	AuthenticatorConfig                    *config.AuthenticatorConfig
	IdentityConfig                         *config.IdentityConfig
}

func (*AuthflowV2EnterOOBOTPHandler) GetData

func (*AuthflowV2EnterOOBOTPHandler) GetInlinePreviewData

func (h *AuthflowV2EnterOOBOTPHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2EnterOOBOTPHandler) ServeHTTP

type AuthflowV2EnterPasswordHandler

type AuthflowV2EnterPasswordHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	Renderer                               handlerwebapp.Renderer
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
}

func (*AuthflowV2EnterPasswordHandler) GetData

func (*AuthflowV2EnterPasswordHandler) GetInlinePreviewData

func (h *AuthflowV2EnterPasswordHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2EnterPasswordHandler) ServeHTTP

type AuthflowV2EnterRecoveryCodeHandler

type AuthflowV2EnterRecoveryCodeHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2EnterRecoveryCodeHandler) GetData

func (*AuthflowV2EnterRecoveryCodeHandler) ServeHTTP

type AuthflowV2EnterRecoveryCodeViewModel

type AuthflowV2EnterRecoveryCodeViewModel struct {
	IsBotProtectionRequired bool
}

type AuthflowV2EnterTOTPHandler

type AuthflowV2EnterTOTPHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
	Renderer                               handlerwebapp.Renderer
}

func (*AuthflowV2EnterTOTPHandler) GetData

func (*AuthflowV2EnterTOTPHandler) GetInlinePreviewData

func (h *AuthflowV2EnterTOTPHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2EnterTOTPHandler) ServeHTTP

type AuthflowV2EnterTOTPViewModel

type AuthflowV2EnterTOTPViewModel struct {
	IsBotProtectionRequired bool
}

type AuthflowV2ErrorHandler

type AuthflowV2ErrorHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2ErrorHandler) GetData

func (*AuthflowV2ErrorHandler) GetInlinePreviewData

func (h *AuthflowV2ErrorHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2ErrorHandler) ServeHTTP

type AuthflowV2FinishFlowHandler

type AuthflowV2FinishFlowHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2FinishFlowHandler) ServeHTTP

type AuthflowV2ForgotPasswordHandler

type AuthflowV2ForgotPasswordHandler struct {
	Controller        *handlerwebapp.AuthflowController
	BaseViewModel     *viewmodels.BaseViewModeler
	AuthflowViewModel *viewmodels.AuthflowViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2ForgotPasswordHandler) GetData

func (h *AuthflowV2ForgotPasswordHandler) GetData(
	w http.ResponseWriter,
	r *http.Request,
	s *webapp.Session,
	initialScreen *webapp.AuthflowScreenWithFlowResponse,
	selectDestinationScreen *webapp.AuthflowScreenWithFlowResponse) (map[string]interface{}, error)

func (*AuthflowV2ForgotPasswordHandler) ServeHTTP

type AuthflowV2ForgotPasswordLinkSentHandler

type AuthflowV2ForgotPasswordLinkSentHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
	Clock         clock.Clock
}

func (*AuthflowV2ForgotPasswordLinkSentHandler) GetData

func (*AuthflowV2ForgotPasswordLinkSentHandler) ServeHTTP

type AuthflowV2ForgotPasswordLinkSentViewModel

type AuthflowV2ForgotPasswordLinkSentViewModel struct {
	MaskedDisplayName string
	ResendCooldown    int
}

type AuthflowV2ForgotPasswordOTPHandler

type AuthflowV2ForgotPasswordOTPHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
	FlashMessage  handlerwebapp.FlashMessage
	Clock         clock.Clock
}

func (*AuthflowV2ForgotPasswordOTPHandler) ServeHTTP

type AuthflowV2LDAPLoginHandler

type AuthflowV2LDAPLoginHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2LDAPLoginHandler) GetData

func (h *AuthflowV2LDAPLoginHandler) GetData(w http.ResponseWriter, r *http.Request, s *webapp.Session, screen *webapp.AuthflowScreenWithFlowResponse, ldapServerName string) (map[string]interface{}, error)

func (*AuthflowV2LDAPLoginHandler) ServeHTTP

type AuthflowV2LoginHandler

type AuthflowV2LoginHandler struct {
	SignupLoginHandler   InternalAuthflowV2SignupLoginHandler
	UIConfig             *config.UIConfig
	AuthenticationConfig *config.AuthenticationConfig
	Controller           *handlerwebapp.AuthflowController
	BaseViewModel        *viewmodels.BaseViewModeler
	AuthflowViewModel    *viewmodels.AuthflowViewModeler
	Renderer             handlerwebapp.Renderer
	MeterService         handlerwebapp.MeterService
	TutorialCookie       handlerwebapp.TutorialCookie
	ErrorService         handlerwebapp.ErrorService
	Endpoints            AuthflowLoginEndpointsProvider
}

func (*AuthflowV2LoginHandler) GetData

func (h *AuthflowV2LoginHandler) GetData(w http.ResponseWriter, r *http.Request, s *webapp.Session, screen *webapp.AuthflowScreenWithFlowResponse, allowLoginOnly bool) (map[string]interface{}, error)

func (*AuthflowV2LoginHandler) GetInlinePreviewData

func (h *AuthflowV2LoginHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2LoginHandler) ServeHTTP

type AuthflowV2Navigator

type AuthflowV2Navigator struct {
	Endpoints       AuthflowV2NavigatorEndpointsProvider
	OAuthStateStore AuthflowV2NavigatorOAuthStateStore
}

func (*AuthflowV2Navigator) Navigate

func (n *AuthflowV2Navigator) Navigate(s *webapp.AuthflowScreenWithFlowResponse, r *http.Request, webSessionID string, result *webapp.Result)

func (*AuthflowV2Navigator) NavigateChangePasswordSuccessPage

func (n *AuthflowV2Navigator) NavigateChangePasswordSuccessPage(s *webapp.AuthflowScreen, r *http.Request, webSessionID string) (result *webapp.Result)

func (*AuthflowV2Navigator) NavigateNonRecoverableError

func (n *AuthflowV2Navigator) NavigateNonRecoverableError(r *http.Request, u *url.URL, e error)

func (*AuthflowV2Navigator) NavigateResetPasswordSuccessPage

func (n *AuthflowV2Navigator) NavigateResetPasswordSuccessPage() string

func (*AuthflowV2Navigator) NavigateSelectAccount

func (n *AuthflowV2Navigator) NavigateSelectAccount(result *webapp.Result)

func (*AuthflowV2Navigator) NavigateVerifyBotProtection

func (n *AuthflowV2Navigator) NavigateVerifyBotProtection(result *webapp.Result)

type AuthflowV2NavigatorEndpointsProvider

type AuthflowV2NavigatorEndpointsProvider interface {
	ErrorEndpointURL() *url.URL
	SelectAccountEndpointURL() *url.URL
	VerifyBotProtectionEndpointURL() *url.URL
}

type AuthflowV2NavigatorOAuthStateStore

type AuthflowV2NavigatorOAuthStateStore interface {
	GenerateState(state *webappoauth.WebappOAuthState) (stateToken string, err error)
}

type AuthflowV2NoAuthenticatorHandler

type AuthflowV2NoAuthenticatorHandler struct {
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2NoAuthenticatorHandler) ServeHTTP

type AuthflowV2NotFoundHandler

type AuthflowV2NotFoundHandler struct {
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2NotFoundHandler) GetData

func (h *AuthflowV2NotFoundHandler) GetData(r *http.Request, w http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2NotFoundHandler) ServeHTTP

type AuthflowV2OOBOTPLinkHandler

type AuthflowV2OOBOTPLinkHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
	Renderer                               handlerwebapp.Renderer
	Clock                                  clock.Clock
}

func (*AuthflowV2OOBOTPLinkHandler) GetData

func (*AuthflowV2OOBOTPLinkHandler) GetInlinePreviewData

func (h *AuthflowV2OOBOTPLinkHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2OOBOTPLinkHandler) ServeHTTP

type AuthflowV2PromoteEndpointsProvider

type AuthflowV2PromoteEndpointsProvider interface {
	SSOCallbackURL(alias string) *url.URL
}

type AuthflowV2PromoteHandler

type AuthflowV2PromoteHandler struct {
	Controller        *handlerwebapp.AuthflowController
	BaseViewModel     *viewmodels.BaseViewModeler
	AuthflowViewModel *viewmodels.AuthflowViewModeler
	Renderer          handlerwebapp.Renderer
	Endpoints         AuthflowV2PromoteEndpointsProvider
}

func (*AuthflowV2PromoteHandler) GetData

func (*AuthflowV2PromoteHandler) ServeHTTP

type AuthflowV2PromptCreatePasskeyHandler

type AuthflowV2PromptCreatePasskeyHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2PromptCreatePasskeyHandler) GetData

func (*AuthflowV2PromptCreatePasskeyHandler) GetInlinePreviewData

func (h *AuthflowV2PromptCreatePasskeyHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2PromptCreatePasskeyHandler) ServeHTTP

type AuthflowV2PromptCreatePasskeyViewModel

type AuthflowV2PromptCreatePasskeyViewModel struct {
	CreationOptionsJSON string
}

type AuthflowV2ReauthHandler

type AuthflowV2ReauthHandler struct {
	Controller *handlerwebapp.AuthflowController

	AuthflowNavigator handlerwebapp.AuthflowNavigator
}

func (*AuthflowV2ReauthHandler) ServeHTTP

type AuthflowV2ResetPasswordHandler

type AuthflowV2ResetPasswordHandler struct {
	NonAuthflowControllerFactory handlerwebapp.ControllerFactory
	Controller                   *handlerwebapp.AuthflowController
	BaseViewModel                *viewmodels.BaseViewModeler
	Renderer                     handlerwebapp.Renderer
	AdminAPIResetPasswordPolicy  ResetPasswordHandlerPasswordPolicy
	ResetPassword                ResetPasswordHandlerResetPasswordService
	Database                     ResetPasswordHandlerDatabase
}

func (*AuthflowV2ResetPasswordHandler) GetAuthflowData

func (h *AuthflowV2ResetPasswordHandler) GetAuthflowData(w http.ResponseWriter, r *http.Request, screen *webapp.AuthflowScreenWithFlowResponse) (map[string]interface{}, error)

func (*AuthflowV2ResetPasswordHandler) GetAuthflowErrorData

func (h *AuthflowV2ResetPasswordHandler) GetAuthflowErrorData(w http.ResponseWriter, r *http.Request, err error) (map[string]interface{}, error)

func (*AuthflowV2ResetPasswordHandler) GetNonAuthflowData

func (h *AuthflowV2ResetPasswordHandler) GetNonAuthflowData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2ResetPasswordHandler) ServeHTTP

type AuthflowV2ResetPasswordSuccessHandler

type AuthflowV2ResetPasswordSuccessHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2ResetPasswordSuccessHandler) GetData

func (h *AuthflowV2ResetPasswordSuccessHandler) GetData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2ResetPasswordSuccessHandler) ServeHTTP

type AuthflowV2ResetPasswordSuccessViewModel

type AuthflowV2ResetPasswordSuccessViewModel struct {
	CanBackToSignIn bool
}

type AuthflowV2SelectAccountHandler

type AuthflowV2SelectAccountHandler struct {
	ControllerFactory         handlerwebapp.ControllerFactory
	BaseViewModel             *viewmodels.BaseViewModeler
	Renderer                  handlerwebapp.Renderer
	AuthenticationConfig      *config.AuthenticationConfig
	SignedUpCookie            webapp.SignedUpCookieDef
	Users                     SelectAccountUserService
	UserFacade                SelectAccountUserFacade
	Identities                SelectAccountIdentityService
	AuthenticationInfoService SelectAccountAuthenticationInfoService
	UIInfoResolver            SelectAccountUIInfoResolver
	Cookies                   handlerwebapp.CookieManager
	OAuthConfig               *config.OAuthConfig
	UIConfig                  *config.UIConfig
	OAuthClientResolver       handlerwebapp.WebappOAuthClientResolver
}

func (*AuthflowV2SelectAccountHandler) GetData

func (h *AuthflowV2SelectAccountHandler) GetData(r *http.Request, rw http.ResponseWriter, userID string) (map[string]interface{}, error)

func (*AuthflowV2SelectAccountHandler) ServeHTTP

nolint: gocognit

type AuthflowV2SettingsAdvancedSettingsHandler

type AuthflowV2SettingsAdvancedSettingsHandler struct {
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2SettingsAdvancedSettingsHandler) GetData

func (*AuthflowV2SettingsAdvancedSettingsHandler) ServeHTTP

type AuthflowV2SettingsBiometricHandler

type AuthflowV2SettingsBiometricHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	SettingsViewModel        *viewmodels.SettingsViewModeler
	Renderer                 handlerwebapp.Renderer
	Identities               handlerwebapp.SettingsIdentityService
	BiometricProvider        BiometricIdentityProvider
	AccountManagementService *accountmanagement.Service
}

func (*AuthflowV2SettingsBiometricHandler) GetData

func (h *AuthflowV2SettingsBiometricHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsBiometricHandler) ServeHTTP

type AuthflowV2SettingsChangePasskeyHandler

type AuthflowV2SettingsChangePasskeyHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer
	Identities        identityservice.Service
	AccountManagement *accountmanagement.Service
	Passkey           PasskeyCreationOptionsService
}

func (*AuthflowV2SettingsChangePasskeyHandler) GetData

func (h *AuthflowV2SettingsChangePasskeyHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsChangePasskeyHandler) ServeHTTP

type AuthflowV2SettingsChangePasswordHandler

type AuthflowV2SettingsChangePasswordHandler struct {
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	Renderer                 handlerwebapp.Renderer
	AccountManagementService *accountmanagement.Service
	PasswordPolicy           handlerwebapp.PasswordPolicy
}

func (*AuthflowV2SettingsChangePasswordHandler) GetData

func (h *AuthflowV2SettingsChangePasswordHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsChangePasswordHandler) ServeHTTP

type AuthflowV2SettingsDeleteAccountHandler

func (*AuthflowV2SettingsDeleteAccountHandler) GetData

func (h *AuthflowV2SettingsDeleteAccountHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsDeleteAccountHandler) ServeHTTP

type AuthflowV2SettingsDeleteAccountSuccessHandler

type AuthflowV2SettingsDeleteAccountSuccessHandler struct {
	ControllerFactory         handlerwebapp.ControllerFactory
	BaseViewModel             *viewmodels.BaseViewModeler
	Renderer                  handlerwebapp.Renderer
	AccountDeletion           *config.AccountDeletionConfig
	Clock                     clock.Clock
	UIInfoResolver            handlerwebapp.SettingsDeleteAccountSuccessUIInfoResolver
	AuthenticationInfoService handlerwebapp.SettingsDeleteAccountSuccessAuthenticationInfoService
}

func (*AuthflowV2SettingsDeleteAccountSuccessHandler) GetData

func (*AuthflowV2SettingsDeleteAccountSuccessHandler) ServeHTTP

type AuthflowV2SettingsDeleteAccountViewModel

type AuthflowV2SettingsDeleteAccountViewModel struct {
	ExpectedAccountDeletionTime time.Time
}

type AuthflowV2SettingsHandler

type AuthflowV2SettingsHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	AuthenticationViewModel  *viewmodels.AuthenticationViewModeler
	SettingsViewModel        *viewmodels.SettingsViewModeler
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Identities               handlerwebapp.SettingsIdentityService
	Renderer                 handlerwebapp.Renderer
	AccountDeletion          *config.AccountDeletionConfig
}

func (*AuthflowV2SettingsHandler) GetData

func (h *AuthflowV2SettingsHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsHandler) ServeHTTP

type AuthflowV2SettingsIdentityAddEmailHandler

type AuthflowV2SettingsIdentityAddEmailHandler struct {
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
	AccountManagement accountmanagement.Service
}

func (*AuthflowV2SettingsIdentityAddEmailHandler) GetData

func (*AuthflowV2SettingsIdentityAddEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityAddEmailViewModel

type AuthflowV2SettingsIdentityAddEmailViewModel struct {
	LoginIDKey string
}

type AuthflowV2SettingsIdentityAddPhoneHandler

type AuthflowV2SettingsIdentityAddPhoneHandler struct {
	ControllerFactory   handlerwebapp.ControllerFactory
	BaseViewModel       *viewmodels.BaseViewModeler
	Renderer            handlerwebapp.Renderer
	AuthenticatorConfig *config.AuthenticatorConfig
	AccountManagement   accountmanagement.Service
}

func (*AuthflowV2SettingsIdentityAddPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityAddPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityAddPhoneViewModel

type AuthflowV2SettingsIdentityAddPhoneViewModel struct {
	LoginIDKey string
	Channel    model.AuthenticatorOOBChannel
}

type AuthflowV2SettingsIdentityChangePrimaryEmailHandler

type AuthflowV2SettingsIdentityChangePrimaryEmailHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer
	Users                    handlerwebapp.SettingsProfileEditUserService
	StdAttrs                 handlerwebapp.SettingsProfileEditStdAttrsService
	Identities               *identityservice.Service
}

func (*AuthflowV2SettingsIdentityChangePrimaryEmailHandler) GetData

func (*AuthflowV2SettingsIdentityChangePrimaryEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityChangePrimaryEmailViewModel

type AuthflowV2SettingsIdentityChangePrimaryEmailViewModel struct {
	LoginIDKey      string
	EmailIdentities []*identity.LoginID
}

type AuthflowV2SettingsIdentityChangePrimaryPhoneHandler

type AuthflowV2SettingsIdentityChangePrimaryPhoneHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer
	Users                    handlerwebapp.SettingsProfileEditUserService
	StdAttrs                 handlerwebapp.SettingsProfileEditStdAttrsService
	Identities               *identityservice.Service
}

func (*AuthflowV2SettingsIdentityChangePrimaryPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityChangePrimaryPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityChangePrimaryPhoneViewModel

type AuthflowV2SettingsIdentityChangePrimaryPhoneViewModel struct {
	LoginIDKey      string
	PhoneIdentities []*identity.LoginID
}

type AuthflowV2SettingsIdentityEditEmailHandler

type AuthflowV2SettingsIdentityEditEmailHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
	AccountManagement accountmanagement.Service
	Identities        *identityservice.Service
}

func (*AuthflowV2SettingsIdentityEditEmailHandler) GetData

func (*AuthflowV2SettingsIdentityEditEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityEditEmailViewModel

type AuthflowV2SettingsIdentityEditEmailViewModel struct {
	LoginIDKey string
	IdentityID string
	Target     *identity.LoginID
}

type AuthflowV2SettingsIdentityEditPhoneHandler

type AuthflowV2SettingsIdentityEditPhoneHandler struct {
	Database            *appdb.Handle
	ControllerFactory   handlerwebapp.ControllerFactory
	BaseViewModel       *viewmodels.BaseViewModeler
	Renderer            handlerwebapp.Renderer
	AuthenticatorConfig *config.AuthenticatorConfig
	AccountManagement   accountmanagement.Service
	Identities          *identityservice.Service
}

func (*AuthflowV2SettingsIdentityEditPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityEditPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityEditPhoneViewModel

type AuthflowV2SettingsIdentityEditPhoneViewModel struct {
	LoginIDKey string
	Channel    model.AuthenticatorOOBChannel
	IdentityID string
	Target     *identity.LoginID
}

type AuthflowV2SettingsIdentityEditUsernameHandler

type AuthflowV2SettingsIdentityEditUsernameHandler struct {
	Database          *appdb.Handle
	AccountManagement *accountmanagement.Service
	Identities        *identityservice.Service
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityEditUsernameHandler) GetData

func (*AuthflowV2SettingsIdentityEditUsernameHandler) ServeHTTP

type AuthflowV2SettingsIdentityEditUsernameViewModel

type AuthflowV2SettingsIdentityEditUsernameViewModel struct {
	Identity *identity.LoginID
}

type AuthflowV2SettingsIdentityListEmailHandler

type AuthflowV2SettingsIdentityListEmailHandler struct {
	Database                 *appdb.Handle
	LoginIDConfig            *config.LoginIDConfig
	Identities               *identityservice.Service
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	Verification             handlerwebapp.SettingsVerificationService
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityListEmailHandler) GetData

func (*AuthflowV2SettingsIdentityListEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityListEmailViewModel

type AuthflowV2SettingsIdentityListEmailViewModel struct {
	LoginIDKey      string
	PrimaryEmail    *identity.LoginID
	EmailIdentities []*identity.LoginID
	Verifications   map[string][]verification.ClaimStatus
	CreateDisabled  bool
}

type AuthflowV2SettingsIdentityListOAuthHandler

type AuthflowV2SettingsIdentityListOAuthHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
	Identities        *identityservice.Service
	Verification      handlerwebapp.SettingsVerificationService
	Endpoints         handlerwebapp.SettingsEndpointsProvider
	OAuthStateStore   handlerwebapp.SettingsOAuthStateStore
	AccountManagement accountmanagement.Service
}

func (*AuthflowV2SettingsIdentityListOAuthHandler) GetData

func (*AuthflowV2SettingsIdentityListOAuthHandler) ServeHTTP

type AuthflowV2SettingsIdentityListOAuthViewModel

type AuthflowV2SettingsIdentityListOAuthViewModel struct {
	OAuthCandidates []identity.Candidate
	OAuthIdentities []*identity.OAuth
	Verifications   map[string][]verification.ClaimStatus
	IdentityCount   int
	CreateDisabled  bool
}

type AuthflowV2SettingsIdentityListPhoneHandler

type AuthflowV2SettingsIdentityListPhoneHandler struct {
	Database                 *appdb.Handle
	LoginIDConfig            *config.LoginIDConfig
	Identities               *identityservice.Service
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	Verification             handlerwebapp.SettingsVerificationService
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityListPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityListPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityListPhoneViewModel

type AuthflowV2SettingsIdentityListPhoneViewModel struct {
	LoginIDKey      string
	PrimaryPhone    *identity.LoginID
	PhoneIdentities []*identity.LoginID
	Verifications   map[string][]verification.ClaimStatus
	CreateDisabled  bool
}

type AuthflowV2SettingsIdentityListUsernameHandler

type AuthflowV2SettingsIdentityListUsernameHandler struct {
	Database          *appdb.Handle
	LoginIDConfig     *config.LoginIDConfig
	Identities        *identityservice.Service
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityListUsernameHandler) GetData

func (*AuthflowV2SettingsIdentityListUsernameHandler) ServeHTTP

type AuthflowV2SettingsIdentityListUsernameViewModel

type AuthflowV2SettingsIdentityListUsernameViewModel struct {
	LoginIDKey         string
	UsernameIdentities []*identity.LoginID // Expect to be all username login id
	CreateDisabled     bool
}

type AuthflowV2SettingsIdentityNewUsernameHandler

type AuthflowV2SettingsIdentityNewUsernameHandler struct {
	Database          *appdb.Handle
	AccountManagement *accountmanagement.Service
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityNewUsernameHandler) GetData

func (*AuthflowV2SettingsIdentityNewUsernameHandler) ServeHTTP

type AuthflowV2SettingsIdentityNewUsernameViewModel

type AuthflowV2SettingsIdentityNewUsernameViewModel struct {
	LoginIDKey string
}

type AuthflowV2SettingsIdentityVerifyEmailHandler

type AuthflowV2SettingsIdentityVerifyEmailHandler struct {
	Database            *appdb.Handle
	ControllerFactory   handlerwebapp.ControllerFactory
	BaseViewModel       *viewmodels.BaseViewModeler
	OTPCodeService      handlerwebapp.OTPCodeService
	Renderer            handlerwebapp.Renderer
	AccountManagement   accountmanagement.Service
	Clock               clock.Clock
	Config              *config.AppConfig
	AuthenticatorConfig *config.AuthenticatorConfig
}

func (*AuthflowV2SettingsIdentityVerifyEmailHandler) GetData

func (*AuthflowV2SettingsIdentityVerifyEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityVerifyEmailViewModel

type AuthflowV2SettingsIdentityVerifyEmailViewModel struct {
	LoginIDKey string
	LoginID    string
	IdentityID string
	Token      string

	CodeLength                     int
	MaskedClaimValue               string
	ResendCooldown                 int
	FailedAttemptRateLimitExceeded bool
}

type AuthflowV2SettingsIdentityVerifyPhoneHandler

type AuthflowV2SettingsIdentityVerifyPhoneHandler struct {
	Database            *appdb.Handle
	ControllerFactory   handlerwebapp.ControllerFactory
	BaseViewModel       *viewmodels.BaseViewModeler
	OTPCodeService      handlerwebapp.OTPCodeService
	Renderer            handlerwebapp.Renderer
	AccountManagement   accountmanagement.Service
	Clock               clock.Clock
	Config              *config.AppConfig
	AuthenticatorConfig *config.AuthenticatorConfig
}

func (*AuthflowV2SettingsIdentityVerifyPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityVerifyPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityVerifyPhoneViewModel

type AuthflowV2SettingsIdentityVerifyPhoneViewModel struct {
	Channels   []model.AuthenticatorOOBChannel
	Channel    model.AuthenticatorOOBChannel
	LoginIDKey string
	LoginID    string
	IdentityID string
	Token      string

	CodeLength                     int
	MaskedClaimValue               string
	ResendCooldown                 int
	FailedAttemptRateLimitExceeded bool
}

type AuthflowV2SettingsIdentityViewEmailHandler

type AuthflowV2SettingsIdentityViewEmailHandler struct {
	Database          *appdb.Handle
	LoginIDConfig     *config.LoginIDConfig
	Identities        *identityservice.Service
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Verification      verification.Service
	Renderer          handlerwebapp.Renderer
	AccountManagement accountmanagement.Service
}

func (*AuthflowV2SettingsIdentityViewEmailHandler) GetData

func (*AuthflowV2SettingsIdentityViewEmailHandler) ServeHTTP

type AuthflowV2SettingsIdentityViewEmailViewModel

type AuthflowV2SettingsIdentityViewEmailViewModel struct {
	LoginIDKey     string
	EmailIdentity  *identity.LoginID
	Verified       bool
	Verifications  map[string][]verification.ClaimStatus
	UpdateDisabled bool
	DeleteDisabled bool
}

type AuthflowV2SettingsIdentityViewPhoneHandler

type AuthflowV2SettingsIdentityViewPhoneHandler struct {
	Database            *appdb.Handle
	LoginIDConfig       *config.LoginIDConfig
	Identities          *identityservice.Service
	ControllerFactory   handlerwebapp.ControllerFactory
	BaseViewModel       *viewmodels.BaseViewModeler
	Verification        handlerwebapp.SettingsVerificationService
	Renderer            handlerwebapp.Renderer
	AuthenticatorConfig *config.AuthenticatorConfig
	AccountManagement   accountmanagement.Service
}

func (*AuthflowV2SettingsIdentityViewPhoneHandler) GetData

func (*AuthflowV2SettingsIdentityViewPhoneHandler) ServeHTTP

type AuthflowV2SettingsIdentityViewPhoneViewModel

type AuthflowV2SettingsIdentityViewPhoneViewModel struct {
	LoginIDKey     string
	Channel        string
	PhoneIdentity  *identity.LoginID
	Verified       bool
	UpdateDisabled bool
	DeleteDisabled bool
}

type AuthflowV2SettingsIdentityViewUsernameHandler

type AuthflowV2SettingsIdentityViewUsernameHandler struct {
	Database          *appdb.Handle
	AccountManagement *accountmanagement.Service
	LoginIDConfig     *config.LoginIDConfig
	Identities        *identityservice.Service
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
}

func (*AuthflowV2SettingsIdentityViewUsernameHandler) GetData

func (*AuthflowV2SettingsIdentityViewUsernameHandler) ServeHTTP

type AuthflowV2SettingsIdentityViewUsernameViewModel

type AuthflowV2SettingsIdentityViewUsernameViewModel struct {
	LoginIDKey     string
	Identity       *identity.LoginID
	UpdateDisabled bool
	DeleteDisabled bool
}

type AuthflowV2SettingsMFAChangePasswordHandler

type AuthflowV2SettingsMFAChangePasswordHandler struct {
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	Renderer                 handlerwebapp.Renderer
	AccountManagementService *accountmanagement.Service
	PasswordPolicy           handlerwebapp.PasswordPolicy
}

func (*AuthflowV2SettingsMFAChangePasswordHandler) GetData

func (*AuthflowV2SettingsMFAChangePasswordHandler) ServeHTTP

type AuthflowV2SettingsMFACreateOOBOTPHandler

type AuthflowV2SettingsMFACreateOOBOTPHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer

	AccountManagementService *accountmanagement.Service
}

func (*AuthflowV2SettingsMFACreateOOBOTPHandler) GetData

func (*AuthflowV2SettingsMFACreateOOBOTPHandler) ServeHTTP

type AuthflowV2SettingsMFACreatePasswordHandler

type AuthflowV2SettingsMFACreatePasswordHandler struct {
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	PasswordPolicy    handlerwebapp.PasswordPolicy
	Renderer          handlerwebapp.Renderer

	AccountManagementService *accountmanagement.Service
}

func (*AuthflowV2SettingsMFACreatePasswordHandler) GetData

func (*AuthflowV2SettingsMFACreatePasswordHandler) ServeHTTP

type AuthflowV2SettingsMFACreateTOTPHandler

type AuthflowV2SettingsMFACreateTOTPHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer

	AccountManagement *accountmanagement.Service
}

func (*AuthflowV2SettingsMFACreateTOTPHandler) GetData

func (h *AuthflowV2SettingsMFACreateTOTPHandler) GetData(r *http.Request, rw http.ResponseWriter, tokenString string, totpSecret string, otpauthURI string) (map[string]interface{}, error)

func (*AuthflowV2SettingsMFACreateTOTPHandler) ServeHTTP

type AuthflowV2SettingsMFACreateTOTPViewModel

type AuthflowV2SettingsMFACreateTOTPViewModel struct {
	Token    string
	Secret   string
	ImageURI htmltemplate.URL
}

type AuthflowV2SettingsMFAEnterOOBOTPHandler

type AuthflowV2SettingsMFAEnterOOBOTPHandler struct {
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer
	FlashMessage      handlerwebapp.FlashMessage
	Clock             clock.Clock
	Config            *config.AppConfig
	OTPCode           handlerwebapp.OTPCodeService
	AccountManagement *accountmanagement.Service
}

func (*AuthflowV2SettingsMFAEnterOOBOTPHandler) GetData

func (*AuthflowV2SettingsMFAEnterOOBOTPHandler) ServeHTTP

type AuthflowV2SettingsMFAEnterTOTPHandler

type AuthflowV2SettingsMFAEnterTOTPHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer
	Clock             clock.Clock

	AccountManagement *accountmanagement.Service
}

func (*AuthflowV2SettingsMFAEnterTOTPHandler) GetData

func (h *AuthflowV2SettingsMFAEnterTOTPHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsMFAEnterTOTPHandler) ServeHTTP

type AuthflowV2SettingsMFAEnterTOTPViewModel

type AuthflowV2SettingsMFAEnterTOTPViewModel struct {
	Secret   string
	ImageURI htmltemplate.URL
}

type AuthflowV2SettingsMFAHandler

type AuthflowV2SettingsMFAHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer
	MFA               *mfa.Service
}

func (*AuthflowV2SettingsMFAHandler) ServeHTTP

type AuthflowV2SettingsMFAPasswordHandler

type AuthflowV2SettingsMFAPasswordHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer
	AccountManagement *accountmanagement.Service
}

func (*AuthflowV2SettingsMFAPasswordHandler) GetData

func (h *AuthflowV2SettingsMFAPasswordHandler) GetData(r *http.Request, w http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsMFAPasswordHandler) ServeHTTP

type AuthflowV2SettingsMFAViewRecoveryCodeHandler

type AuthflowV2SettingsMFAViewRecoveryCodeHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	Renderer          handlerwebapp.Renderer

	AccountManagement *accountmanagement.Service
	MFA               handlerwebapp.SettingsMFAService
}

func (*AuthflowV2SettingsMFAViewRecoveryCodeHandler) GetData

func (*AuthflowV2SettingsMFAViewRecoveryCodeHandler) ServeHTTP

type AuthflowV2SettingsMFAViewRecoveryCodeViewModel

type AuthflowV2SettingsMFAViewRecoveryCodeViewModel struct {
	RecoveryCodes []string
	CanProceed    bool
	CanRegenerate bool
}

type AuthflowV2SettingsOOBOTPHandler

type AuthflowV2SettingsOOBOTPHandler struct {
	Database             *appdb.Handle
	ControllerFactory    handlerwebapp.ControllerFactory
	BaseViewModel        *viewmodels.BaseViewModeler
	SettingsViewModel    *viewmodels.SettingsViewModeler
	Renderer             handlerwebapp.Renderer
	AuthenticatiorConfig *config.AuthenticatorConfig
	AccountManagement    *accountmanagement.Service
	Authenticators       authenticatorservice.Service
}

func (*AuthflowV2SettingsOOBOTPHandler) GetData

func (h *AuthflowV2SettingsOOBOTPHandler) GetData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2SettingsOOBOTPHandler) ServeHTTP

type AuthflowV2SettingsOOBOTPViewModel

type AuthflowV2SettingsOOBOTPViewModel struct {
	OOBOTPType           model.AuthenticatorType
	OOBOTPAuthenticators []*authenticator.OOBOTP
	OOBOTPChannel        model.AuthenticatorOOBChannel
}

type AuthflowV2SettingsPasskeyViewModel

type AuthflowV2SettingsPasskeyViewModel struct {
	PasskeyIdentities   []*identity.Info
	CreationOptionsJSON string
}

type AuthflowV2SettingsProfileEditHandler

type AuthflowV2SettingsProfileEditHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer

	UserProfileConfig *config.UserProfileConfig

	Users       handlerwebapp.SettingsProfileEditUserService
	StdAttrs    handlerwebapp.SettingsProfileEditStdAttrsService
	CustomAttrs handlerwebapp.SettingsProfileEditCustomAttrsService
}

func (*AuthflowV2SettingsProfileEditHandler) GetData

func (h *AuthflowV2SettingsProfileEditHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2SettingsProfileEditHandler) ServeHTTP

nolint: gocognit

type AuthflowV2SettingsProfileHandler

type AuthflowV2SettingsProfileHandler struct {
	Database                 *appdb.Handle
	ControllerFactory        handlerwebapp.ControllerFactory
	BaseViewModel            *viewmodels.BaseViewModeler
	SettingsProfileViewModel *viewmodels.SettingsProfileViewModeler
	Renderer                 handlerwebapp.Renderer
}

func (*AuthflowV2SettingsProfileHandler) ServeHTTP

type AuthflowV2SettingsSessionsHandler

type AuthflowV2SettingsSessionsHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer
	Sessions          handlerwebapp.SettingsSessionManager
	Authorizations    handlerwebapp.SettingsAuthorizationService
	OAuthConfig       *config.OAuthConfig
	SessionListing    handlerwebapp.SettingsSessionListingService
}

func (*AuthflowV2SettingsSessionsHandler) GetData

func (*AuthflowV2SettingsSessionsHandler) ServeHTTP

type AuthflowV2SettingsTOTPHandler

type AuthflowV2SettingsTOTPHandler struct {
	Database          *appdb.Handle
	ControllerFactory handlerwebapp.ControllerFactory
	BaseViewModel     *viewmodels.BaseViewModeler
	SettingsViewModel *viewmodels.SettingsViewModeler
	Renderer          handlerwebapp.Renderer

	AccountManagement *accountmanagement.Service
	Authenticators    authenticatorservice.Service
}

func (*AuthflowV2SettingsTOTPHandler) GetData

func (h *AuthflowV2SettingsTOTPHandler) GetData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2SettingsTOTPHandler) ServeHTTP

type AuthflowV2SettingsTOTPViewModel

type AuthflowV2SettingsTOTPViewModel struct {
	TOTPAuthenticators []*authenticator.TOTP
}

type AuthflowV2SetupOOBOTPHandler

type AuthflowV2SetupOOBOTPHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2SetupOOBOTPHandler) GetData

func (*AuthflowV2SetupOOBOTPHandler) ServeHTTP

type AuthflowV2SetupTOTPHandler

type AuthflowV2SetupTOTPHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2SetupTOTPHandler) GetData

func (*AuthflowV2SetupTOTPHandler) ServeHTTP

type AuthflowV2SignupHandler

type AuthflowV2SignupHandler struct {
	SignupLoginHandler   InternalAuthflowV2SignupLoginHandler
	AuthenticationConfig *config.AuthenticationConfig
	UIConfig             *config.UIConfig
}

func (*AuthflowV2SignupHandler) ServeHTTP

type AuthflowV2SignupServeOptions

type AuthflowV2SignupServeOptions struct {
	CanSwitchToLogin bool
	FlowType         authflow.FlowType
	UIVariant        AuthflowV2SignupUIVariant
}

type AuthflowV2SignupUIVariant

type AuthflowV2SignupUIVariant string
const (
	AuthflowV2SignupUIVariantSignup      AuthflowV2SignupUIVariant = "signup"
	AuthflowV2SignupUIVariantSignupLogin AuthflowV2SignupUIVariant = "signup_login"
)

type AuthflowV2SignupViewModel

type AuthflowV2SignupViewModel struct {
	CanSwitchToLogin bool
	UIVariant        AuthflowV2SignupUIVariant
}

type AuthflowV2TerminateOtherSessionsHandler

type AuthflowV2TerminateOtherSessionsHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2TerminateOtherSessionsHandler) GetData

func (*AuthflowV2TerminateOtherSessionsHandler) ServeHTTP

type AuthflowV2UsePasskeyHandler

type AuthflowV2UsePasskeyHandler struct {
	Controller                             *handlerwebapp.AuthflowController
	BaseViewModel                          *viewmodels.BaseViewModeler
	InlinePreviewAuthflowBranchViewModeler *viewmodels.InlinePreviewAuthflowBranchViewModeler
	Renderer                               handlerwebapp.Renderer
}

func (*AuthflowV2UsePasskeyHandler) GetData

func (*AuthflowV2UsePasskeyHandler) GetInlinePreviewData

func (h *AuthflowV2UsePasskeyHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)

func (*AuthflowV2UsePasskeyHandler) ServeHTTP

type AuthflowV2UsePasskeyViewModel

type AuthflowV2UsePasskeyViewModel struct {
	AutoExecute               bool
	PasskeyRequestOptionsJSON string
	IsBotProtectionRequired   bool
}

type AuthflowV2VerifyBotProtectionHandler

type AuthflowV2VerifyBotProtectionHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2VerifyBotProtectionHandler) GetData

func (*AuthflowV2VerifyBotProtectionHandler) ServeHTTP

type AuthflowV2VerifyLoginLinkOTPHandler

type AuthflowV2VerifyLoginLinkOTPHandler struct {
	LoginLinkOTPCodeService     handlerwebapp.OTPCodeService
	GlobalSessionServiceFactory *handlerwebapp.GlobalSessionServiceFactory
	ControllerFactory           handlerwebapp.ControllerFactory
	BaseViewModel               *viewmodels.BaseViewModeler
	AuthenticationViewModel     *viewmodels.AuthenticationViewModeler
	Renderer                    handlerwebapp.Renderer
	AuthenticationFlowEvents    AuthenticationFlowWebsocketEventStore
	Config                      *config.AppConfig
}

func (*AuthflowV2VerifyLoginLinkOTPHandler) GetData

func (h *AuthflowV2VerifyLoginLinkOTPHandler) GetData(r *http.Request, rw http.ResponseWriter) (map[string]interface{}, error)

func (*AuthflowV2VerifyLoginLinkOTPHandler) ServeHTTP

type AuthflowV2ViewRecoveryCodeHandler

type AuthflowV2ViewRecoveryCodeHandler struct {
	Controller    *handlerwebapp.AuthflowController
	BaseViewModel *viewmodels.BaseViewModeler
	Renderer      handlerwebapp.Renderer
}

func (*AuthflowV2ViewRecoveryCodeHandler) GetData

func (*AuthflowV2ViewRecoveryCodeHandler) ServeHTTP

type AuthflowV2WechatHandler

type AuthflowV2WechatHandler struct {
	Controller      *handlerwebapp.AuthflowController
	BaseViewModel   *viewmodels.BaseViewModeler
	Renderer        handlerwebapp.Renderer
	OAuthStateStore AuthflowV2WechatHandlerOAuthStateStore
}

func (*AuthflowV2WechatHandler) GetData

func (*AuthflowV2WechatHandler) ServeHTTP

type AuthflowV2WechatHandlerOAuthStateStore

type AuthflowV2WechatHandlerOAuthStateStore interface {
	GenerateState(state *webappoauth.WebappOAuthState) (stateToken string, err error)
}

type AuthflowViewRecoveryCodeViewModel

type AuthflowViewRecoveryCodeViewModel struct {
	RecoveryCodes []string
}

type AuthflowWechatViewModel

type AuthflowWechatViewModel struct {
	ImageURI          htmltemplate.URL
	WechatRedirectURI htmltemplate.URL
}

type Authorization

type Authorization struct {
	ID                    string
	ClientID              string
	ClientName            string
	Scope                 []string
	CreatedAt             time.Time
	HasFullUserInfoAccess bool
}

type BiometricIdentity

type BiometricIdentity struct {
	ID          string
	DisplayName string
	CreatedAt   time.Time
}

type BiometricIdentityProvider

type BiometricIdentityProvider interface {
	List(userID string) ([]*identity.Biometric, error)
}

type ForgotPasswordLoginIDInputType

type ForgotPasswordLoginIDInputType string
const (
	ForgotPasswordLoginIDInputTypeEmail ForgotPasswordLoginIDInputType = "email"
	ForgotPasswordLoginIDInputTypePhone ForgotPasswordLoginIDInputType = "phone"
)

func (ForgotPasswordLoginIDInputType) IsValid

type InternalAuthflowV2SignupLoginHandler

type InternalAuthflowV2SignupLoginHandler struct {
	Controller        *handlerwebapp.AuthflowController
	BaseViewModel     *viewmodels.BaseViewModeler
	AuthflowViewModel *viewmodels.AuthflowViewModeler
	Renderer          handlerwebapp.Renderer
	MeterService      handlerwebapp.MeterService
	TutorialCookie    handlerwebapp.TutorialCookie
	Endpoints         handlerwebapp.AuthflowSignupEndpointsProvider
}

func (*InternalAuthflowV2SignupLoginHandler) GetData

func (*InternalAuthflowV2SignupLoginHandler) GetInlinePreviewData

func (h *InternalAuthflowV2SignupLoginHandler) GetInlinePreviewData(w http.ResponseWriter, r *http.Request, options AuthflowV2SignupServeOptions) (map[string]interface{}, error)

func (*InternalAuthflowV2SignupLoginHandler) ServeHTTP

type LoginLinkOTPPageQueryState

type LoginLinkOTPPageQueryState string
const (
	LoginLinkOTPPageQueryStateInitial     LoginLinkOTPPageQueryState = ""
	LoginLinkOTPPageQueryStateInvalidCode LoginLinkOTPPageQueryState = "invalid_code"
	LoginLinkOTPPageQueryStateMatched     LoginLinkOTPPageQueryState = "matched"
)

func GetLoginLinkStateFromQuery

func GetLoginLinkStateFromQuery(r *http.Request) LoginLinkOTPPageQueryState

func (*LoginLinkOTPPageQueryState) IsValid

func (s *LoginLinkOTPPageQueryState) IsValid() bool

type PasskeyCreationOptionsService

type PasskeyCreationOptionsService interface {
	MakeCreationOptions(userID string) (*model.WebAuthnCreationOptions, error)
}

type ResetPasswordHandlerDatabase

type ResetPasswordHandlerDatabase interface {
	WithTx(do func() error) (err error)
}

type ResetPasswordHandlerPasswordPolicy

type ResetPasswordHandlerPasswordPolicy interface {
	PasswordPolicy() []password.Policy
	PasswordRules() string
}

type ResetPasswordHandlerResetPasswordService

type ResetPasswordHandlerResetPasswordService interface {
	ResetPasswordByEndUser(code string, newPassword string) error
}

type SelectAccountAuthenticationInfoService

type SelectAccountAuthenticationInfoService interface {
	Save(entry *authenticationinfo.Entry) error
}

type SelectAccountIdentityService

type SelectAccountIdentityService interface {
	ListByUser(userID string) ([]*identity.Info, error)
}

type SelectAccountUIInfoResolver

type SelectAccountUIInfoResolver interface {
	SetAuthenticationInfoInQuery(redirectURI string, e *authenticationinfo.Entry) string
}

type SelectAccountUserFacade

type SelectAccountUserFacade interface {
	GetUserIDsByLoginHint(hint *oauth.LoginHint) ([]string, error)
}

type SelectAccountUserService

type SelectAccountUserService interface {
	Get(userID string, role accesscontrol.Role) (*model.User, error)
}

type SelectAccountViewModel

type SelectAccountViewModel struct {
	IdentityDisplayName string
	UserProfile         handlerwebapp.UserProfile
}

type SettingsAccountDeletionViewModel

type SettingsAccountDeletionViewModel struct {
	AccountDeletionAllowed bool
}

type SettingsBiometricViewModel

type SettingsBiometricViewModel struct {
	BiometricIdentities []*BiometricIdentity
}

type SettingsMFACreateOOBOTPViewModel

type SettingsMFACreateOOBOTPViewModel struct {
	Channel model.AuthenticatorOOBChannel
}

type SettingsMFAEnterOOBOTPViewModel

type SettingsMFAEnterOOBOTPViewModel struct {
	AuthenticatorType              string
	Channels                       []model.AuthenticatorOOBChannel
	Channel                        model.AuthenticatorOOBChannel
	Target                         string
	MaskedClaimValue               string
	CodeLength                     int
	FailedAttemptRateLimitExceeded bool
	ResendCooldown                 int
}

func NewSettingsMFAEnterOOBOTPViewModel

func NewSettingsMFAEnterOOBOTPViewModel(oobConfig *config.AuthenticatorOOBConfig, tokenAuthenticator *accountmanagement.TokenAuthenticator, now time.Time, state *otp.State) SettingsMFAEnterOOBOTPViewModel

type SettingsSessionsViewModel

type SettingsSessionsViewModel struct {
	CurrentSessionID string
	Sessions         []*sessionlisting.Session
	Authorizations   []Authorization
}

type VerifyLoginLinkOTPViewModel

type VerifyLoginLinkOTPViewModel struct {
	Code  string
	State LoginLinkOTPPageQueryState
}

func NewVerifyLoginLinkOTPViewModel

func NewVerifyLoginLinkOTPViewModel(r *http.Request) VerifyLoginLinkOTPViewModel

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL