mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-05 02:18:48 +00:00
feat: select idp and auto register (#2336)
* faet: auto regsiter config on idp * feat: auto register on login * feat: auto register on register * feat: redirect to selected identity provider * fix: test * fix: test * fix: user by id request org id * fix: migration version and test Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -9,12 +9,13 @@ import (
|
||||
|
||||
type IDPConfig struct {
|
||||
es_models.ObjectRoot
|
||||
IDPConfigID string
|
||||
Type IDPConfigType
|
||||
Name string
|
||||
StylingType IDPConfigStylingType
|
||||
State IDPConfigState
|
||||
OIDCConfig *OIDCIDPConfig
|
||||
IDPConfigID string
|
||||
Type IDPConfigType
|
||||
Name string
|
||||
StylingType IDPConfigStylingType
|
||||
State IDPConfigState
|
||||
OIDCConfig *OIDCIDPConfig
|
||||
AutoRegister bool
|
||||
}
|
||||
|
||||
type IDPConfigView struct {
|
||||
@@ -27,6 +28,7 @@ type IDPConfigView struct {
|
||||
ChangeDate time.Time
|
||||
Sequence uint64
|
||||
IDPProviderType IdentityProviderType
|
||||
AutoRegister bool
|
||||
|
||||
IsOIDC bool
|
||||
OIDCClientID string
|
||||
|
||||
@@ -27,6 +27,7 @@ const (
|
||||
NextStepPasswordlessRegistrationPrompt
|
||||
NextStepRegistration
|
||||
NextStepProjectRequired
|
||||
NextStepRedirectToExternalIDP
|
||||
)
|
||||
|
||||
type LoginStep struct{}
|
||||
@@ -67,6 +68,12 @@ const (
|
||||
UserSessionStateTerminated
|
||||
)
|
||||
|
||||
type RedirectToExternalIDPStep struct{}
|
||||
|
||||
func (s *RedirectToExternalIDPStep) Type() NextStepType {
|
||||
return NextStepRedirectToExternalIDP
|
||||
}
|
||||
|
||||
type InitUserStep struct {
|
||||
PasswordSet bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user