authz

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderAdminRole is the role that gives Provider Admin access to an org
	ProviderAdminRole = "FORGE_PROVIDER_ADMIN"
	// ProviderViewerRole is the role that gives Provider Viewer access to an org
	ProviderViewerRole = "FORGE_PROVIDER_VIEWER"
	// TenantAdminRole is the role that gives Tenant Admin access to an org
	TenantAdminRole = "FORGE_TENANT_ADMIN"
)

Variables

This section is empty.

Functions

func ValidateOrgMembership

func ValidateOrgMembership(user *cdbm.User, org string) (bool, error)

ValidateOrgMembership validates if a given user is member of an org

func ValidateUserRoles

func ValidateUserRoles(user *cdbm.User, orgName string, teamName *string, targetRoles ...string) bool

ValidateUserRoles validates user roles using the appropriate method based on user data

func ValidateUserRolesInOrg

func ValidateUserRolesInOrg(userOrgDetails cdbm.Org, teamName *string, targetRoles ...string) bool

ValidateUserRolesInOrg checks if user has any of the specified roles (not all)

Types

This section is empty.

Jump to

Keyboard shortcuts

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