authinfoservice

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: 5 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) *Implementation

func (*Implementation) GenericOAuthLookup

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

func (*Implementation) GetAuthInfo

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

func (*Implementation) GetExternalUserInfoByLogin

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

func (*Implementation) LookupAndFix

func (*Implementation) LookupAndUpdate

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

func (*Implementation) LookupByOneOf

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

func (*Implementation) SetAuthInfo

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

func (*Implementation) UpdateAuthInfo

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

type OSSUserProtectionImpl

type OSSUserProtectionImpl struct {
}

func ProvideOSSUserProtectionService

func ProvideOSSUserProtectionService() *OSSUserProtectionImpl

func (*OSSUserProtectionImpl) AllowUserMapping

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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