Thanks to visit codestin.com
Credit goes to pkg.go.dev

enidpsync

package
v2.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnterpriseIDPSync

type EnterpriseIDPSync struct {
	*idpsync.AGPLIDPSync
	// contains filtered or unexported fields
}

EnterpriseIDPSync enabled syncing user information from an external IDP. The sync is an enterprise feature, so this struct wraps the AGPL implementation and extends it with enterprise capabilities. These capabilities can entirely be changed in the Parsing, and leaving the "syncing" part (which holds the more complex logic) to the shared AGPL implementation.

func (EnterpriseIDPSync) GroupSyncEntitled added in v2.18.0

func (e EnterpriseIDPSync) GroupSyncEntitled() bool

func (EnterpriseIDPSync) OrganizationRoleSyncEnabled added in v2.16.0

func (e EnterpriseIDPSync) OrganizationRoleSyncEnabled(ctx context.Context, db database.Store, orgID uuid.UUID) (bool, error)

func (EnterpriseIDPSync) OrganizationSyncEnabled

func (e EnterpriseIDPSync) OrganizationSyncEnabled(ctx context.Context, db database.Store) bool

func (EnterpriseIDPSync) OrganizationSyncEntitled added in v2.18.0

func (e EnterpriseIDPSync) OrganizationSyncEntitled() bool

func (EnterpriseIDPSync) ParseGroupClaims added in v2.16.0

func (e EnterpriseIDPSync) ParseGroupClaims(ctx context.Context, mergedClaims jwt.MapClaims) (idpsync.GroupParams, *idpsync.HTTPError)

ParseGroupClaims parses the user claims and handles deployment wide group behavior. Almost all behavior is deferred since each organization configures it's own group sync settings. GroupAllowList is implemented here to prevent login by unauthorized users. TODO: GroupAllowList overlaps with the default organization group sync settings.

func (EnterpriseIDPSync) ParseOrganizationClaims

func (e EnterpriseIDPSync) ParseOrganizationClaims(ctx context.Context, mergedClaims jwt.MapClaims) (idpsync.OrganizationParams, *idpsync.HTTPError)

func (EnterpriseIDPSync) ParseRoleClaims added in v2.16.0

func (e EnterpriseIDPSync) ParseRoleClaims(ctx context.Context, mergedClaims jwt.MapClaims) (idpsync.RoleParams, *idpsync.HTTPError)

func (EnterpriseIDPSync) RoleSyncEntitled added in v2.16.0

func (e EnterpriseIDPSync) RoleSyncEntitled() bool

func (EnterpriseIDPSync) SiteRoleSyncEnabled added in v2.16.0

func (e EnterpriseIDPSync) SiteRoleSyncEnabled() bool

Jump to

Keyboard shortcuts

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