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.
Click to show internal directories.
Click to hide internal directories.