zitadel/internal/v2/repository/idp/oidc/mapping_field.go

15 lines
259 B
Go
Raw Normal View History

2020-11-25 20:04:32 +01:00
package oidc
type MappingField int32
const (
MappingFieldPreferredLoginName MappingField = iota + 1
MappingFieldEmail
// count is for validation purposes
mappingFieldCount
)
func (f MappingField) Valid() bool {
return f > 0 && f < mappingFieldCount
}