login

package
v0.0.0-...-900be4e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCredentials = errors.New("invalid username or password")
	ErrUsersQuotaReached  = errors.New("users quota reached")
	ErrGettingUserQuota   = errors.New("error getting user quota")
)

Functions

This section is empty.

Types

type LoginService

type LoginService struct {
	Bus          bus.Bus             `inject:""`
	QuotaService *quota.QuotaService `inject:""`
	TeamSync     TeamSyncFunc
}

func (*LoginService) Init

func (ls *LoginService) Init() error

func (*LoginService) UpsertUser

func (ls *LoginService) UpsertUser(cmd *models.UpsertUserCommand) error

UpsertUser updates an existing user, or if it doesn't exist, inserts a new one.

type TeamSyncFunc

type TeamSyncFunc func(user *models.User, externalUser *models.ExternalUserInfo) error

Jump to

Keyboard shortcuts

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