mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-12 09:05: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:
@@ -701,6 +701,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -1339,6 +1344,7 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{
|
||||
Title: "Title",
|
||||
Description: "Description",
|
||||
DescriptionClose: "DescriptionClose",
|
||||
NextButtonText: "NextButtonText",
|
||||
CancelButtonText: "CancelButtonText",
|
||||
},
|
||||
@@ -2100,6 +2106,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -3193,6 +3204,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextRemovedEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextRemovedEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, language.English,
|
||||
@@ -3661,41 +3677,41 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
ctx: context.Background(),
|
||||
resourceOwner: "org1",
|
||||
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{},
|
||||
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{},
|
||||
ExternalRegistrationUserOverview: domain.ExternalRegistrationUserOverviewScreenText{},
|
||||
RegistrationUser: domain.RegistrationUserScreenText{},
|
||||
RegistrationOrg: domain.RegistrationOrgScreenText{},
|
||||
LinkingUsersDone: domain.LinkingUserDoneScreenText{},
|
||||
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{},
|
||||
LoginSuccess: domain.SuccessLoginScreenText{},
|
||||
LogoutDone: domain.LogoutDoneScreenText{},
|
||||
Footer: domain.FooterText{},
|
||||
RegistrationUser: domain.RegistrationUserScreenText{},
|
||||
RegistrationOrg: domain.RegistrationOrgScreenText{},
|
||||
LinkingUsersDone: domain.LinkingUserDoneScreenText{},
|
||||
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{},
|
||||
LoginSuccess: domain.SuccessLoginScreenText{},
|
||||
LogoutDone: domain.LogoutDoneScreenText{},
|
||||
Footer: domain.FooterText{},
|
||||
},
|
||||
},
|
||||
res: res{
|
||||
@@ -4340,6 +4356,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -5430,6 +5451,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextRemovedEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextRemovedEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, language.English,
|
||||
@@ -6523,6 +6549,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescription, "Description", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneDescriptionClose, "DescriptionClose", language.English,
|
||||
),
|
||||
),
|
||||
eventFromEventPusher(
|
||||
org.NewCustomTextSetEvent(context.Background(),
|
||||
&org.NewAggregate("org1", "org1").Aggregate, domain.LoginCustomText, domain.LoginKeyPasswordlessRegistrationDoneNextButtonText, "NextButtonText", language.English,
|
||||
@@ -7161,6 +7192,7 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
|
||||
PasswordlessRegistrationDone: domain.PasswordlessRegistrationDoneScreenText{
|
||||
Title: "Title",
|
||||
Description: "Description",
|
||||
DescriptionClose: "DescriptionClose",
|
||||
NextButtonText: "NextButtonText",
|
||||
CancelButtonText: "CancelButtonText",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user