authinfoimpl

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetTime = time.Now

Functions

func ProvideStore

func ProvideStore(sqlStore db.DB, secretsService secrets.Service) login.Store

Types

type OSSUserProtectionImpl

type OSSUserProtectionImpl struct {
}

func ProvideOSSUserProtectionService

func ProvideOSSUserProtectionService() *OSSUserProtectionImpl

func (*OSSUserProtectionImpl) AllowUserMapping

func (*OSSUserProtectionImpl) AllowUserMapping(_ *user.User, _ string) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(authInfoStore login.Store,
	remoteCache remotecache.CacheStorage,
	secretService secrets.Service) *Service

func (*Service) DeleteUserAuthInfo

func (s *Service) DeleteUserAuthInfo(ctx context.Context, userID int64) error

func (*Service) GetAuthInfo

func (s *Service) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)

func (*Service) GetUserLabels

func (s *Service) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)

func (*Service) SetAuthInfo

func (s *Service) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error

func (*Service) UpdateAuthInfo

func (s *Service) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) DeleteUserAuthInfo

func (s *Store) DeleteUserAuthInfo(ctx context.Context, userID int64) error

func (*Store) GetAuthInfo

func (s *Store) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)

GetAuthInfo returns the auth info for a user It will return the latest auth info for a user

func (*Store) GetUserLabels

func (s *Store) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)

func (*Store) SetAuthInfo

func (s *Store) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error

func (*Store) UpdateAuthInfo

func (s *Store) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error

Jump to

Keyboard shortcuts

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