authinfoservice

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct {
	UserProtectionService login.UserProtectionService
	// contains filtered or unexported fields
}

func ProvideAuthInfoService

func ProvideAuthInfoService(userProtectionService login.UserProtectionService, authInfoStore login.Store, usageStats usagestats.Service) *Implementation

func (*Implementation) DeleteUserAuthInfo

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

func (*Implementation) GenericOAuthLookup

func (s *Implementation) GenericOAuthLookup(ctx context.Context, authModule string, authId string, userID int64) (*login.UserAuth, error)

func (*Implementation) GetAuthInfo

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

func (*Implementation) GetExternalUserInfoByLogin

func (s *Implementation) GetExternalUserInfoByLogin(ctx context.Context, query *login.GetExternalUserInfoByLoginQuery) (*login.ExternalUserInfo, error)

func (*Implementation) GetUserLabels

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

func (*Implementation) LookupAndFix

func (*Implementation) LookupAndUpdate

func (s *Implementation) LookupAndUpdate(ctx context.Context, query *login.GetUserByAuthInfoQuery) (*user.User, error)

func (*Implementation) LookupByOneOf

func (s *Implementation) LookupByOneOf(ctx context.Context, params *login.UserLookupParams) (*user.User, error)

func (*Implementation) Run

func (s *Implementation) Run(ctx context.Context) error

func (*Implementation) SetAuthInfo

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

func (*Implementation) UpdateAuthInfo

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

type OSSUserProtectionImpl

type OSSUserProtectionImpl struct {
}

func ProvideOSSUserProtectionService

func ProvideOSSUserProtectionService() *OSSUserProtectionImpl

func (*OSSUserProtectionImpl) AllowUserMapping

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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