sync

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: 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, cfg *setting.Cfg) *OrgSync

func (*OrgSync) SetDefaultOrgHook

func (s *OrgSync) SetDefaultOrgHook(ctx context.Context, currentIdentity *authn.Identity, r *authn.Request, err error)

func (*OrgSync) SyncOrgRolesHook

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

type RBACSync

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

func ProvideRBACSync

func ProvideRBACSync(acService accesscontrol.Service) *RBACSync

func (*RBACSync) SyncCloudRoles

func (s *RBACSync) SyncCloudRoles(ctx context.Context, ident *authn.Identity, r *authn.Request) error

func (*RBACSync) SyncPermissionsHook

func (s *RBACSync) SyncPermissionsHook(ctx context.Context, ident *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) EnableUserHook

func (s *UserSync) EnableUserHook(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