Categorygithub.com/Keyfactor/keyfactor-auth-client-go
modulepackage
0.0.1-rc.18
Repository: https://github.com/keyfactor/keyfactor-auth-client-go.git
Documentation: pkg.go.dev

# README

keyfactor-auth-client-go

Client library for authenticating to Keyfactor Command

Environment Variables

Global

NameDescriptionDefault
KEYFACTOR_HOSTNAMEKeyfactor Command hostname without protocol and port
KEYFACTOR_PORTKeyfactor Command port443
KEYFACTOR_API_PATHKeyfactor Command API PathKeyfactorAPI
KEYFACTOR_SKIP_VERIFYSkip TLS verification when connecting to Keyfactor Commandfalse
KEYFACTOR_CA_CERTEither a file path or PEM encoded string to a CA certificate to trust when communicating with Keyfactor Command
KEYFACTOR_CLIENT_TIMEOUTTimeout for HTTP client requests to Keyfactor Command60s
KEYFACTOR_AUTH_CONFIG_FILEPath to a JSON file containing the authentication configuration$HOME/.keyfactor/command_config.json
KEYFACTOR_AUTH_CONFIG_PROFILEProfile to use from the authentication configuration filedefault

Basic Auth

Currently, only Active Directory Basic authentication is supported.

NameDescriptionDefault
KEYFACTOR_USERNAMEActive Directory username to authenticate to Keyfactor Command API
KEYFACTOR_PASSWORDPassword associated with Active Directory username to authenticate to Keyfactor Command API
KEYFACTOR_DOMAINActive Directory domain of user. Can be implied from username if it contains @ or \\

oAuth Client Credentials

NameDescriptionDefault
KEYFACTOR_AUTH_CLIENT_IDKeyfactor Auth Client ID
KEYFACTOR_AUTH_CLIENT_SECRETKeyfactor Auth Client Secret
KEYFACTOR_AUTH_TOKEN_URLURL to request an access token from Keyfactor Auth
KEYFACTOR_AUTH_SCOPESScopes to request when authenticating to Keyfactor Command APIopenid
KEYFACTOR_AUTH_ACCESS_TOKENAccess token to use to authenticate to Keyfactor Command API. This can be supplied directly or generated via client credentials
KEYFACTOR_AUTH_CA_CERTEither a file path or PEM encoded string to a CA certificate to use when connecting to Keyfactor Auth

Test Environment Variables

These environment variables are used to run go tests. They are not used in the actual client library.

NameDescriptionDefault
TEST_KEYFACTOR_AD_AUTHSet to true to test Active Directory authenticationfalse
TEST_KEYFACTOR_KC_AUTHSet to true to test Keycloak authenticationfalse

# Packages

No description provided by the author
No description provided by the author
No description provided by the author