auth: publish self-hosted administration foundations
verify / verify (push) Successful in 3m32s

This commit is contained in:
2026-08-27 10:37:38 -04:00
parent a39e8f893c
commit a769d1ea7b
15 changed files with 1124 additions and 100 deletions
+3
View File
@@ -25,6 +25,7 @@ var (
ErrOperationBinding = errors.New("authwebauthn: operation binding does not match")
ErrPasskeyReadiness = errors.New("authwebauthn: at least two passkeys are required")
ErrUnsupportedCredential = errors.New("authwebauthn: credential algorithm is unsupported")
ErrPasswordNotAvailable = errors.New("authwebauthn: password migration is not available")
)
const (
@@ -100,7 +101,9 @@ type Repository interface {
UserByIdentifier(context.Context, string) (auth.User, error)
UserByCredentialID(context.Context, []byte) (auth.User, error)
CredentialsByUserID(context.Context, string) ([]Credential, error)
PasswordCredentialExists(context.Context, string) (bool, error)
SaveCredential(context.Context, Credential, auth.AuditEvent) error
SaveCredentialAndRetirePassword(context.Context, Credential, auth.AuditEvent) error
UpdateCredential(context.Context, Credential) error
DeleteCredential(context.Context, string, []byte, int, auth.AuditEvent) error
CredentialCount(context.Context, string) (int, error)