mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
ebeedd1346
member not working atm
50 lines
719 B
Go
50 lines
719 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
|
|
}
|