2023-09-12 01:22:48 +02:00
|
|
|
package biometrics
|
|
|
|
|
2023-09-12 01:33:11 +02:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/quexten/goldwarden/logging"
|
|
|
|
)
|
|
|
|
|
|
|
|
var log = logging.GetLogger("Goldwarden", "Biometrics")
|
2023-09-12 01:22:48 +02:00
|
|
|
|
|
|
|
var biometricsDisabled = false
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
if os.Getenv("GOLDWARDEN_SYSTEM_AUTH_DISABLED") == "true" {
|
|
|
|
biometricsDisabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Approval string
|
|
|
|
|
|
|
|
const (
|
2023-09-19 21:49:56 +02:00
|
|
|
AccessVault Approval = "com.quexten.goldwarden.accessvault"
|
2023-09-12 01:22:48 +02:00
|
|
|
SSHKey Approval = "com.quexten.goldwarden.usesshkey"
|
|
|
|
BrowserBiometrics Approval = "com.quexten.goldwarden.browserbiometrics"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (a Approval) String() string {
|
|
|
|
return string(a)
|
|
|
|
}
|