logintest

package
v0.0.85-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInfoServiceFake

type AuthInfoServiceFake struct {
	LatestUserID         int64
	ExpectedUserAuth     *models.UserAuth
	ExpectedUser         *models.User
	ExpectedExternalUser *models.ExternalUserInfo
	ExpectedError        error
}

func (*AuthInfoServiceFake) GetAuthInfo

func (a *AuthInfoServiceFake) GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error

func (*AuthInfoServiceFake) GetExternalUserInfoByLogin

func (a *AuthInfoServiceFake) GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error

func (*AuthInfoServiceFake) LookupAndUpdate

func (a *AuthInfoServiceFake) LookupAndUpdate(ctx context.Context, query *models.GetUserByAuthInfoQuery) (*models.User, error)

func (*AuthInfoServiceFake) SetAuthInfo

func (*AuthInfoServiceFake) UpdateAuthInfo

type AuthenticatorFake

type AuthenticatorFake struct {
	ExpectedUser  *models.User
	ExpectedError error
}

func (*AuthenticatorFake) AuthenticateUser

func (a *AuthenticatorFake) AuthenticateUser(c context.Context, query *models.LoginUserQuery) error

type LoginServiceFake

type LoginServiceFake struct{}

func (*LoginServiceFake) CreateUser

func (l *LoginServiceFake) CreateUser(cmd models.CreateUserCommand) (*models.User, error)

func (*LoginServiceFake) DisableExternalUser

func (l *LoginServiceFake) DisableExternalUser(ctx context.Context, username string) error

func (*LoginServiceFake) SetTeamSyncFunc

func (l *LoginServiceFake) SetTeamSyncFunc(login.TeamSyncFunc)

func (*LoginServiceFake) UpsertUser

func (l *LoginServiceFake) UpsertUser(ctx context.Context, cmd *models.UpsertUserCommand) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL