mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 11:53:40 +00:00
15 lines
259 B
Go
15 lines
259 B
Go
|
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
|
||
|
}
|