mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
feat: add management for ldap idp template (#5220)
Add management functionality for LDAP idps with templates and the basic functionality for the LDAP provider, which can then be used with a separate login page in the future. --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
36
internal/domain/idp.go
Normal file
36
internal/domain/idp.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package domain
|
||||
|
||||
type IDPState int32
|
||||
|
||||
const (
|
||||
IDPStateUnspecified IDPState = iota
|
||||
IDPStateActive
|
||||
IDPStateInactive
|
||||
IDPStateRemoved
|
||||
|
||||
idpStateCount
|
||||
)
|
||||
|
||||
func (s IDPState) Valid() bool {
|
||||
return s >= 0 && s < idpStateCount
|
||||
}
|
||||
|
||||
func (s IDPState) Exists() bool {
|
||||
return s != IDPStateUnspecified && s != IDPStateRemoved
|
||||
}
|
||||
|
||||
type IDPType int32
|
||||
|
||||
const (
|
||||
IDPTypeUnspecified IDPType = iota
|
||||
IDPTypeOIDC
|
||||
IDPTypeJWT
|
||||
IDPTypeOAuth
|
||||
IDPTypeLDAP
|
||||
IDPTypeAzureAD
|
||||
IDPTypeGitHub
|
||||
IDPTypeGitHubEE
|
||||
IDPTypeGitLab
|
||||
IDPTypeGitLabSelfHosted
|
||||
IDPTypeGoogle
|
||||
)
|
Reference in New Issue
Block a user