identity

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Users    core.UserStore
	Groups   core.GroupStore
	Sessions core.SessionStore
	Settings core.SettingStore
	APIKeys  core.APIKeyStore
}

func (Service) AdminSettings

func (s Service) AdminSettings() (core.AdminSettings, error)

func (Service) AuthSettings

func (s Service) AuthSettings() (core.AuthSettings, error)

func (Service) BindExternalIdentity

func (s Service) BindExternalIdentity(link core.ExternalIdentityLink) error

func (Service) CanAccessProject

func (s Service) CanAccessProject(user core.User, project core.Collection, required string) bool

func (Service) ChangePassword

func (s Service) ChangePassword(userID, currentPassword, newPassword string) error

func (Service) CompleteSetup

func (s Service) CompleteSetup(input core.SetupRequest) (core.User, error)

func (Service) CreateAPIKey

func (s Service) CreateAPIKey(userID, name string) (core.APIKey, error)

func (Service) CreateGroup

func (s Service) CreateGroup(name string) (core.Group, error)

func (Service) DeleteAPIKey

func (s Service) DeleteAPIKey(id string) error

func (Service) DeveloperSettings

func (s Service) DeveloperSettings() (core.DeveloperSettings, error)
func (s Service) ExternalIdentityLinks() ([]core.ExternalIdentityLink, error)

func (Service) ExternalIdentityLinksForUser

func (s Service) ExternalIdentityLinksForUser(userID string) ([]core.ExternalIdentityLink, error)

func (Service) HasCapability

func (s Service) HasCapability(userID, capability, required string) bool

HasCapability enforces the instance-wide group permission matrix. Project roles still decide which saved analyses and dashboards a user can access; these capabilities decide whether the user may operate on source data.

func (Service) IdentityProviders

func (s Service) IdentityProviders() ([]core.IdentityProvider, error)

func (Service) InviteUser

func (s Service) InviteUser(name, email, password string) (core.User, error)

func (Service) IsAdmin

func (s Service) IsAdmin(userID string) bool

func (Service) ListAPIKeys

func (s Service) ListAPIKeys(userID string) ([]core.APIKey, error)

func (Service) ListAllAPIKeys

func (s Service) ListAllAPIKeys() ([]core.APIKey, error)

func (Service) ListGroups

func (s Service) ListGroups() ([]core.Group, error)

func (Service) ListUsers

func (s Service) ListUsers() ([]core.User, error)

func (Service) Login

func (s Service) Login(email, password string) (core.Session, core.User, error)

func (Service) LoginExternal

func (s Service) LoginExternal(email string) (core.Session, core.User, error)

func (Service) LoginExternalIdentity

func (s Service) LoginExternalIdentity(providerID, subject, email string) (core.Session, core.User, error)

func (Service) Logout

func (s Service) Logout(sessionID string) error

func (Service) PermissionGraph

func (s Service) PermissionGraph() (core.PermissionGraph, error)

func (Service) ProjectAccessRules

func (s Service) ProjectAccessRules() ([]core.ProjectAccessRule, error)

func (Service) ReplaceGroupMembers

func (s Service) ReplaceGroupMembers(id string, memberIDs []string) (core.Group, error)

func (Service) ReplaceUserManualGroups

func (s Service) ReplaceUserManualGroups(userID string, groupIDs []string) error

ReplaceUserManualGroups updates only manually managed groups. System and synchronized memberships remain owned by their respective sources.

func (Service) ResetUserPassword

func (s Service) ResetUserPassword(id, password string) error

func (Service) SaveAdminSettings

func (s Service) SaveAdminSettings(settings core.AdminSettings) (core.AdminSettings, error)

func (Service) SaveAuthSettings

func (s Service) SaveAuthSettings(settings core.AuthSettings) error

func (Service) SaveDeveloperSettings

func (s Service) SaveDeveloperSettings(settings core.DeveloperSettings) (core.DeveloperSettings, error)

func (Service) SaveIdentityProviders

func (s Service) SaveIdentityProviders(items []core.IdentityProvider) error

func (Service) SavePermissionGraph

func (s Service) SavePermissionGraph(graph core.PermissionGraph) (core.PermissionGraph, error)

func (Service) SaveProjectAccessRules

func (s Service) SaveProjectAccessRules(items []core.ProjectAccessRule) error

func (Service) SaveWebhooks

func (s Service) SaveWebhooks(items []core.WebhookEndpoint) error

func (Service) SetSiteName

func (s Service) SetSiteName(name string) error

func (Service) SetUserActive

func (s Service) SetUserActive(id string, active bool) error

func (Service) SetupCompleted

func (s Service) SetupCompleted() (bool, error)

func (Service) SiteName

func (s Service) SiteName() string

func (Service) SyncDirectory

func (s Service) SyncDirectory(ctx context.Context, directory core.OrgDirectory) ([]core.Group, error)

func (Service) UnbindExternalIdentity

func (s Service) UnbindExternalIdentity(userID, providerID string) error

func (Service) UpdateProfile

func (s Service) UpdateProfile(userID, name, email, locale, theme, avatarURL, currentPassword string) (core.User, error)

func (Service) UserForAPIKey

func (s Service) UserForAPIKey(raw string) (core.User, error)

func (Service) UserForSession

func (s Service) UserForSession(sessionID string) (core.User, error)

func (Service) Webhooks

func (s Service) Webhooks() ([]core.WebhookEndpoint, error)

func (Service) WithRole

func (s Service) WithRole(user core.User) core.User

Jump to

Keyboard shortcuts

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