Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NormalizeFuncs = map[string]NormalizeFunc{ "auto": NormalizeAuto, "precis_casefold_email": address.PRECISFold, "precis_casefold": precis.UsernameCaseMapped.CompareKey, "precis_email": address.PRECIS, "precis": precis.UsernameCasePreserved.CompareKey, "casefold": func(s string) (string, error) { return strings.ToLower(s), nil }, "noop": NormalizeNoop, }
NormalizeFuncs defines configurable normalization functions to be used in authentication and authorization routines.
Functions ¶
func AuthorizeEmailUse ¶
func NormalizeAuto ¶ added in v0.7.0
NormalizeAuto applies address.PRECISFold to valid emails and plain UsernameCaseMapped profile to other strings.
func NormalizeNoop ¶ added in v0.7.0
Types ¶
type NormalizeFunc ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.