common

package
v1.3.1-0...-2eb6d4b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDefaultTokenPolicy

func MakeDefaultTokenPolicy(serviceName string) map[string]interface{}

Types

type UserManager

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

func NewUserManager

func NewUserManager(
	logger logger.LoggingClient,
	secretStoreClient secrets.SecretStoreClient,
	userPassMountPoint string,
	jwtKeyName string,
	privilegedToken string,
	tokenTTL string,
	jwtAudience string,
	jwtTTL string,
) *UserManager

func (*UserManager) CreatePasswordUserWithPolicy

func (m *UserManager) CreatePasswordUserWithPolicy(username string, password string, policyPrefix string, policy map[string]interface{}) error

CreatePasswordUserWithPolicy creates a secretstore identity with an attached policy using userpass authentication engine. username should be the name of the user or service to be created password should be a random password to be assigned policyPrefix is prefixed to username and should be "edgex-user-" or policyPrefix policy is a map that will be serialized as a policy attached to the identity

func (*UserManager) DeletePasswordUser

func (m *UserManager) DeletePasswordUser(username string) error

Jump to

Keyboard shortcuts

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