authusers

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SystemUser is a user that is allowed to do anything and is used only for internally invoked operations
	// that are guaranteed to be safe and thus do not require to pass through authorization.
	// This user cannot be an owner of any object.
	// This user cannot login.
	// Tokens cannot be generated for this user.
	SystemUser = kittehs.Must1(sdktypes.UserFromProto(&sdktypes.UserPB{
		UserId:      kittehs.Must1(sdktypes.ParseUserID("usr_3vser000000000000000000000")).String(),
		DisplayName: "System User",
	}))

	// DefaultUser is a user that is used when no user authentication is required but not enabled.
	// This user is a regular user and has no special privileges whatsoever.
	// This user cannot login.
	// Tokens cannot be generated for this user.
	DefaultUser = kittehs.Must1(sdktypes.UserFromProto(&sdktypes.UserPB{
		UserId:       kittehs.Must1(sdktypes.ParseUserID("usr_3vser000000000000000000001")).String(),
		DisplayName:  "Default User",
		DefaultOrgId: DefaultOrg.ToProto().OrgId,
	}))

	DefaultOrg = kittehs.Must1(sdktypes.OrgFromProto(&sdktypes.OrgPB{
		OrgId:       kittehs.Must1(sdktypes.ParseOrgID("org_30rg0000000000000000000002")).String(),
		DisplayName: "Default Org",
	}))
)

Functions

func IsInternalUserID added in v0.12.1

func IsInternalUserID(id sdktypes.UserID) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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