60162b3fc5
Signed-off-by: Michael Mayer <michael@photoprism.app>
19 lines
369 B
Go
19 lines
369 B
Go
package authn
|
|
|
|
// Authentication providers.
|
|
const (
|
|
ProviderDefault = ""
|
|
ProviderNone = "none"
|
|
ProviderToken = "token"
|
|
ProviderLocal = "local"
|
|
ProviderLDAP = "ldap"
|
|
)
|
|
|
|
// ProviderString returns the provider name as a string for use in logs and reports.
|
|
func ProviderString(s string) string {
|
|
if s == ProviderDefault {
|
|
return "default"
|
|
}
|
|
|
|
return s
|
|
}
|