active_directory

package
v0.0.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKeyfactorDomain   = "KEYFACTOR_DOMAIN"
	EnvKeyfactorUsername = "KEYFACTOR_USERNAME"
	EnvKeyfactorPassword = "KEYFACTOR_PASSWORD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAuthConfigActiveDirectory

type CommandAuthConfigActiveDirectory struct {
	// CommandAuthConfig is a reference to the base configuration needed for authentication to Keyfactor Command API
	auth_providers.CommandAuthConfigBasic

	// Domain is the domain of the Active Directory used to authenticate to Keyfactor Command API
	Domain string `json:"domain"`
}

CommandAuthConfigActiveDirectory represents the configuration needed for Active Directory authentication. It embeds CommandAuthConfigBasic and adds additional fields specific to Active Directory.

func (*CommandAuthConfigActiveDirectory) Authenticate

func (c *CommandAuthConfigActiveDirectory) Authenticate() error

Authenticate performs the authentication process for Active Directory. It validates the authentication configuration, generates the authentication header, and calls the basic authentication method.

func (*CommandAuthConfigActiveDirectory) ValidateAuthConfig

func (c *CommandAuthConfigActiveDirectory) ValidateAuthConfig() error

ValidateAuthConfig validates the authentication configuration for Active Directory. It checks the username, domain, and password, and retrieves them from environment variables if they're not set.

Jump to

Keyboard shortcuts

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