Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadYAML ¶
LoadYAML loads and unmarshals a YAML file.
Types ¶
type AppSpecificPassword ¶
AppSpecificPassword is a password tied to a single service.
type ServiceBackend ¶
ServiceBackend looks up user info for a specific service.
type Spec ¶
type Spec struct { BackendName string `yaml:"backend"` Params yaml.Node `yaml:"params"` StaticGroups []string `yaml:"static_groups"` }
Spec specifies backend-specific configuration for a service.
type User ¶
type User struct { Name string Email string Shard string EncryptedPassword []byte TOTPSecret string WebAuthnRegistrations []webauthn.Credential AppSpecificPasswords []*AppSpecificPassword Groups []string }
User contains the attributes of a user account as relevant to the authentication server. It is only used internally, to communicate between the authserver and its storage backends.
func (*User) Has2FA ¶
Has2FA returns true if the user supports any interactive 2FA method.
func (*User) HasASPs ¶
HasASPs returns true if the user has app-specific passwords.
type UserBackend ¶
type UserBackend interface { Close() NewServiceBackend(*Spec) (ServiceBackend, error) }
UserBackend provides us with per-service user information.
Click to show internal directories.
Click to hide internal directories.