mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-19 03:35:12 +00:00
feat: choose preferred WebAuthN platform for passwordless registration (#2469)
* feat: request preferred platform type for passwordless registration when using link * add text in console
This commit is contained in:
@@ -684,6 +684,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -1320,6 +1325,7 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{
|
||||
Title: "Title",
|
||||
Description: "Description",
|
||||
DescriptionClose: "DescriptionClose",
|
||||
NextButtonText: "NextButtonText",
|
||||
CancelButtonText: "CancelButtonText",
|
||||
},
|
||||
@@ -2081,6 +2087,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -3174,6 +3185,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextRemovedEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextRemovedEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, language.English,
|
||||
@@ -3641,41 +3657,41 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
args: args{
|
||||
ctx: context.Background(),
|
||||
config: &domain.CustomLoginText{
|
||||
Language: language.English,
|
||||
SelectAccount: domain.SelectAccountScreenText{},
|
||||
Login: domain.LoginScreenText{},
|
||||
Password: domain.PasswordScreenText{},
|
||||
UsernameChange: domain.UsernameChangeScreenText{},
|
||||
UsernameChangeDone: domain.UsernameChangeDoneScreenText{},
|
||||
InitPassword: domain.InitPasswordScreenText{},
|
||||
InitPasswordDone: domain.InitPasswordDoneScreenText{},
|
||||
EmailVerification: domain.EmailVerificationScreenText{},
|
||||
EmailVerificationDone: domain.EmailVerificationDoneScreenText{},
|
||||
InitUser: domain.InitializeUserScreenText{},
|
||||
InitUserDone: domain.InitializeUserDoneScreenText{},
|
||||
InitMFAPrompt: domain.InitMFAPromptScreenText{},
|
||||
InitMFAOTP: domain.InitMFAOTPScreenText{},
|
||||
InitMFAU2F: domain.InitMFAU2FScreenText{},
|
||||
InitMFADone: domain.InitMFADoneScreenText{},
|
||||
MFAProvider: domain.MFAProvidersText{},
|
||||
VerifyMFAOTP: domain.VerifyMFAOTPScreenText{},
|
||||
VerifyMFAU2F: domain.VerifyMFAU2FScreenText{},
|
||||
Passwordless: domain.PasswordlessScreenText{},
|
||||
PasswordlessPrompt: domain.PasswordlessPromptScreenText{},
|
||||
PasswordlessRegistration: domain.PasswordlessRegistrationScreenText{},
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{},
|
||||
PasswordChange: domain.PasswordChangeScreenText{},
|
||||
PasswordChangeDone: domain.PasswordChangeDoneScreenText{},
|
||||
PasswordResetDone: domain.PasswordResetDoneScreenText{},
|
||||
RegisterOption: domain.RegistrationOptionScreenText{},
|
||||
RegistrationUser: domain.RegistrationUserScreenText{},
|
||||
Language: language.English,
|
||||
SelectAccount: domain.SelectAccountScreenText{},
|
||||
Login: domain.LoginScreenText{},
|
||||
Password: domain.PasswordScreenText{},
|
||||
UsernameChange: domain.UsernameChangeScreenText{},
|
||||
UsernameChangeDone: domain.UsernameChangeDoneScreenText{},
|
||||
InitPassword: domain.InitPasswordScreenText{},
|
||||
InitPasswordDone: domain.InitPasswordDoneScreenText{},
|
||||
EmailVerification: domain.EmailVerificationScreenText{},
|
||||
EmailVerificationDone: domain.EmailVerificationDoneScreenText{},
|
||||
InitUser: domain.InitializeUserScreenText{},
|
||||
InitUserDone: domain.InitializeUserDoneScreenText{},
|
||||
InitMFAPrompt: domain.InitMFAPromptScreenText{},
|
||||
InitMFAOTP: domain.InitMFAOTPScreenText{},
|
||||
InitMFAU2F: domain.InitMFAU2FScreenText{},
|
||||
InitMFADone: domain.InitMFADoneScreenText{},
|
||||
MFAProvider: domain.MFAProvidersText{},
|
||||
VerifyMFAOTP: domain.VerifyMFAOTPScreenText{},
|
||||
VerifyMFAU2F: domain.VerifyMFAU2FScreenText{},
|
||||
Passwordless: domain.PasswordlessScreenText{},
|
||||
PasswordlessPrompt: domain.PasswordlessPromptScreenText{},
|
||||
PasswordlessRegistration: domain.PasswordlessRegistrationScreenText{},
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{},
|
||||
PasswordChange: domain.PasswordChangeScreenText{},
|
||||
PasswordChangeDone: domain.PasswordChangeDoneScreenText{},
|
||||
PasswordResetDone: domain.PasswordResetDoneScreenText{},
|
||||
RegisterOption: domain.RegistrationOptionScreenText{},
|
||||
RegistrationUser: domain.RegistrationUserScreenText{},
|
||||
ExternalRegistrationUserOverview: domain.ExternalRegistrationUserOverviewScreenText{},
|
||||
RegistrationOrg: domain.RegistrationOrgScreenText{},
|
||||
LinkingUsersDone: domain.LinkingUserDoneScreenText{},
|
||||
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{},
|
||||
LoginSuccess: domain.SuccessLoginScreenText{},
|
||||
LogoutDone: domain.LogoutDoneScreenText{},
|
||||
Footer: domain.FooterText{},
|
||||
RegistrationOrg: domain.RegistrationOrgScreenText{},
|
||||
LinkingUsersDone: domain.LinkingUserDoneScreenText{},
|
||||
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{},
|
||||
LoginSuccess: domain.SuccessLoginScreenText{},
|
||||
LogoutDone: domain.LogoutDoneScreenText{},
|
||||
Footer: domain.FooterText{},
|
||||
},
|
||||
},
|
||||
res: res{
|
||||
@@ -4320,6 +4336,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -5411,6 +5432,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextRemovedEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextRemovedEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, language.English,
|
||||
@@ -6504,6 +6530,11 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
iam.NewCustomTextSetEvent(context.Background(),
|
||||
&iam.NewAggregate().Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -7141,6 +7172,7 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{
|
||||
Title: "Title",
|
||||
Description: "Description",
|
||||
DescriptionClose: "DescriptionClose",
|
||||
NextButtonText: "NextButtonText",
|
||||
CancelButtonText: "CancelButtonText",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user