feat: auth method query side (#3068)

* feat: queries for searching mfas and passwordless

* feat: tests for user auth method queries

* Update internal/api/grpc/auth/multi_factor.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/api/grpc/auth/passwordless.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/api/grpc/management/user.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/api/grpc/management/user.go

Co-authored-by: Livio Amstutz <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2022-01-20 13:21:59 +01:00
committed by GitHub
co-authored by Livio Amstutz
parent c3d4db10ac
commit 5c6df06a7c
9 changed files with 672 additions and 67 deletions
-4
View File
@@ -24,10 +24,6 @@ type UserRepository interface {
ProfileByID(ctx context.Context, userID string) (*model.Profile, error)
UserMFAs(ctx context.Context, userID string) ([]*model.MultiFactor, error)
GetPasswordless(ctx context.Context, userID string) ([]*model.WebAuthNView, error)
EmailByID(ctx context.Context, userID string) (*model.Email, error)
PhoneByID(ctx context.Context, userID string) (*model.Phone, error)