mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
320679467b
* feat: change login to command side * feat: change login to command side * fix: fix push on user * feat: user command side * feat: sign out * feat: command side login * feat: command side login * feat: fix register user * feat: fix register user * feat: fix web auth n events * feat: add machine keys * feat: send codes * feat: move authrequest to domain * feat: move authrequest to domain * feat: webauthn working * feat: external users * feat: external users login * feat: notify users * fix: tests * feat: cascade remove user grants on project remove * fix: webauthn * fix: pr requests * fix: register human with member * fix: fix bugs * fix: fix bugs
41 lines
1.2 KiB
Go
41 lines
1.2 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/user/model"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
myUserRepo
|
|
|
|
GetPasswordless(ctx context.Context, id string) ([]*model.WebAuthNToken, error)
|
|
|
|
UserSessionUserIDsByAgentID(ctx context.Context, agentID string) ([]string, error)
|
|
|
|
UserByID(ctx context.Context, userID string) (*model.UserView, error)
|
|
UserByLoginName(ctx context.Context, loginName string) (*model.UserView, error)
|
|
|
|
MachineKeyByID(ctx context.Context, keyID string) (*model.MachineKeyView, error)
|
|
}
|
|
|
|
type myUserRepo interface {
|
|
MyUser(ctx context.Context) (*model.UserView, error)
|
|
|
|
MyProfile(ctx context.Context) (*model.Profile, error)
|
|
|
|
MyEmail(ctx context.Context) (*model.Email, error)
|
|
|
|
MyPhone(ctx context.Context) (*model.Phone, error)
|
|
|
|
MyAddress(ctx context.Context) (*model.Address, error)
|
|
|
|
SearchMyExternalIDPs(ctx context.Context, request *model.ExternalIDPSearchRequest) (*model.ExternalIDPSearchResponse, error)
|
|
|
|
MyUserMFAs(ctx context.Context) ([]*model.MultiFactor, error)
|
|
|
|
GetMyPasswordless(ctx context.Context) ([]*model.WebAuthNToken, error)
|
|
|
|
MyUserChanges(ctx context.Context, lastSequence uint64, limit uint64, sortAscending bool) (*model.UserChanges, error)
|
|
}
|