sync

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthTokenSync

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

func ProvideOAuthTokenSync

func ProvideOAuthTokenSync(service oauthtoken.OAuthTokenService, sessionService auth.UserTokenService, socialService social.Service) *OAuthTokenSync

func (*OAuthTokenSync) SyncOauthTokenHook

func (s *OAuthTokenSync) SyncOauthTokenHook(ctx context.Context, identity *authn.Identity, _ *authn.Request) error

type OrgSync

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

func ProvideOrgSync

func ProvideOrgSync(userService user.Service, orgService org.Service, accessControl accesscontrol.Service) *OrgSync

func (*OrgSync) SyncOrgRolesHook

func (s *OrgSync) SyncOrgRolesHook(ctx context.Context, id *authn.Identity, _ *authn.Request) error

type PermissionsSync

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

func ProvidePermissionsSync

func ProvidePermissionsSync(acService accesscontrol.Service) *PermissionsSync

func (*PermissionsSync) SyncPermissionsHook

func (s *PermissionsSync) SyncPermissionsHook(ctx context.Context, identity *authn.Identity, _ *authn.Request) error

type UserSync

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

func ProvideUserSync

func ProvideUserSync(userService user.Service,
	userProtectionService login.UserProtectionService,
	authInfoService login.AuthInfoService, quotaService quota.Service) *UserSync

func (*UserSync) EnableDisabledUserHook

func (s *UserSync) EnableDisabledUserHook(ctx context.Context, identity *authn.Identity, _ *authn.Request) error

func (*UserSync) FetchSyncedUserHook

func (s *UserSync) FetchSyncedUserHook(ctx context.Context, identity *authn.Identity, r *authn.Request) error

func (*UserSync) SyncLastSeenHook

func (s *UserSync) SyncLastSeenHook(ctx context.Context, identity *authn.Identity, r *authn.Request) error

func (*UserSync) SyncUserHook

func (s *UserSync) SyncUserHook(ctx context.Context, id *authn.Identity, _ *authn.Request) error

SyncUserHook syncs a user with the database

Jump to

Keyboard shortcuts

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