Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDefaultTokenPolicy ¶
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
Click to show internal directories.
Click to hide internal directories.