mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
63 lines
911 B
Go
63 lines
911 B
Go
package idp
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
|
)
|
|
|
|
type ConfigAggregate struct {
|
|
eventstore.Aggregate
|
|
}
|
|
|
|
type ConfigType int32
|
|
|
|
const (
|
|
ConfigTypeOIDC ConfigType = iota
|
|
ConfigTypeSAML
|
|
|
|
//count is for validation
|
|
configTypeCount
|
|
)
|
|
|
|
func (f ConfigType) Valid() bool {
|
|
return f >= 0 && f < configTypeCount
|
|
}
|
|
|
|
type ConfigState int32
|
|
|
|
const (
|
|
ConfigStateActive ConfigState = iota
|
|
ConfigStateInactive
|
|
ConfigStateRemoved
|
|
|
|
configStateCount
|
|
)
|
|
|
|
func (f ConfigState) Valid() bool {
|
|
return f >= 0 && f < configStateCount
|
|
}
|
|
|
|
type StylingType int32
|
|
|
|
const (
|
|
StylingTypeGoogle StylingType = iota + 1
|
|
|
|
stylingTypeCount
|
|
)
|
|
|
|
func (f StylingType) Valid() bool {
|
|
return f >= 0 && f < stylingTypeCount
|
|
}
|
|
|
|
type ProviderType int8
|
|
|
|
const (
|
|
ProviderTypeSystem ProviderType = iota
|
|
ProviderTypeOrg
|
|
|
|
providerTypeCount
|
|
)
|
|
|
|
func (f ProviderType) Valid() bool {
|
|
return f >= 0 && f < providerTypeCount
|
|
}
|