Work on new auth framework based on new storage system
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Melody Becker 2025-03-28 16:17:08 +01:00
parent 66d6299295
commit 9496ba0cc6
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
5 changed files with 264 additions and 0 deletions

11
auth-new/errors.go Normal file
View file

@ -0,0 +1,11 @@
package auth
import "errors"
var (
// The provided authentication method is not known to the server
ErrUnknownAuthMethod = errors.New("unknown authentication method")
// The user hasn't setup the provided authentication method
ErrUnsupportedAuthMethod = errors.New("authentication method not supported for this user")
ErrInvalidCombination = errors.New("invalid account and token combination")
)