mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:47:33 +00:00
feat(idp): provide option to auto link user (#7734)
* init auto linking * prompt handling * working * translations * console * fixes * unify * custom texts * fix tests * linting * fix check of existing user * fix bg translation * set unspecified as default in the form
This commit is contained in:
@@ -264,6 +264,12 @@ const (
|
||||
LoginKeyRegisterOrgSaveButtonText = LoginKeyRegistrationOrg + "SaveButtonText"
|
||||
LoginKeyRegisterOrgBackButtonText = LoginKeyRegistrationOrg + "BackButtonText"
|
||||
|
||||
LoginKeyLinkingUserPrompt = "LinkingUserPrompt."
|
||||
LoginKeyLinkingUserPromptTitle = LoginKeyLinkingUserPrompt + "Title"
|
||||
LoginKeyLinkingUserPromptDescription = LoginKeyLinkingUserPrompt + "Description"
|
||||
LoginKeyLinkingUserPromptLinkButtonText = LoginKeyLinkingUserPrompt + "LinkButtonText"
|
||||
LoginKeyLinkingUserPromptOtherButtonText = LoginKeyLinkingUserPrompt + "OtherButtonText"
|
||||
|
||||
LoginKeyLinkingUserDone = "LinkingUsersDone."
|
||||
LoginKeyLinkingUserDoneTitle = LoginKeyLinkingUserDone + "Title"
|
||||
LoginKeyLinkingUserDoneDescription = LoginKeyLinkingUserDone + "Description"
|
||||
@@ -336,6 +342,7 @@ type CustomLoginText struct {
|
||||
RegistrationUser RegistrationUserScreenText
|
||||
ExternalRegistrationUserOverview ExternalRegistrationUserOverviewScreenText
|
||||
RegistrationOrg RegistrationOrgScreenText
|
||||
LinkingUserPrompt LinkingUserPromptScreenText
|
||||
LinkingUsersDone LinkingUserDoneScreenText
|
||||
ExternalNotFound ExternalUserNotFoundScreenText
|
||||
LoginSuccess SuccessLoginScreenText
|
||||
@@ -607,6 +614,13 @@ type RegistrationOrgScreenText struct {
|
||||
SaveButtonText string
|
||||
}
|
||||
|
||||
type LinkingUserPromptScreenText struct {
|
||||
Title string
|
||||
Description string
|
||||
LinkButtonText string
|
||||
OtherButtonText string
|
||||
}
|
||||
|
||||
type LinkingUserDoneScreenText struct {
|
||||
Title string
|
||||
Description string
|
||||
|
@@ -126,3 +126,11 @@ func (s IDPIntentState) Valid() bool {
|
||||
func (s IDPIntentState) Exists() bool {
|
||||
return s != IDPIntentStateUnspecified && s != IDPIntentStateFailed //TODO: ?
|
||||
}
|
||||
|
||||
type AutoLinkingOption uint8
|
||||
|
||||
const (
|
||||
AutoLinkingOptionUnspecified AutoLinkingOption = iota
|
||||
AutoLinkingOptionUsername
|
||||
AutoLinkingOptionEmail
|
||||
)
|
||||
|
Reference in New Issue
Block a user