2021-01-04 14:52:13 +01:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type IdentityProviderType int8
|
|
|
|
|
|
|
|
const (
|
|
|
|
IdentityProviderTypeSystem IdentityProviderType = iota
|
|
|
|
IdentityProviderTypeOrg
|
|
|
|
|
|
|
|
identityProviderCount
|
|
|
|
)
|
|
|
|
|
|
|
|
func (f IdentityProviderType) Valid() bool {
|
|
|
|
return f >= 0 && f < identityProviderCount
|
|
|
|
}
|
2021-01-07 16:06:45 +01:00
|
|
|
|
|
|
|
type IdentityProviderState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
IdentityProviderStateUnspecified IdentityProviderState = iota
|
|
|
|
IdentityProviderStateActive
|
|
|
|
IdentityProviderStateRemoved
|
|
|
|
|
|
|
|
idpProviderState
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s IdentityProviderState) Valid() bool {
|
|
|
|
return s >= 0 && s < idpProviderState
|
|
|
|
}
|