identity providers and bearerauth

This commit is contained in:
Marco Realacci 2022-11-18 13:05:40 +01:00
parent 5f3d4df33a
commit 626b7fa3e9
32 changed files with 1317 additions and 12 deletions

View file

@ -38,9 +38,10 @@ import (
// AppDatabase is the high level interface for the DB
type AppDatabase interface {
UserExists(uid string) (bool, error)
GetUserID(name string) (string, error)
SetName(name string) error
CreateUser(uid string, name string) error
CreateUser(name string) (string, error)
FollowUser(uid string, follow string) error
UnfollowUser(uid string, unfollow string) error
BanUser(uid string, ban string) error