Documentation
¶
Index ¶
Constants ¶
const ( // MechanismUsernamePassword is the string which identifies the username/password mechanism for completing // a login attempt MechanismUsernamePassword = "UP" // ActionAnswer is the string which is sent to an AdvanceAuthentication request to indicate we're providing // the credentials in band in text format (i.e., we're sending a password) ActionAnswer = "Answer" // SummaryLoginSuccess is returned by a StartAuthentication to indicate that login does not need // to proceed to the AdvanceAuthentication step. // We don't handle this because we don't expect it to happen. SummaryLoginSuccess = "LoginSuccess" // SummaryNewPackage is returned by a StartAuthentication call when the user must complete a challenge // to complete the log in. This is expected on a first login. SummaryNewPackage = "NewPackage" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an client for interacting with the CyberArk Identity API and performing a login using a username and password. For context on the behaviour of this client, see the Python SDK: https://github.com/cyberark/ark-sdk-python/blob/3be12c3f2d3a2d0407025028943e584b6edc5996/ark_sdk_python/auth/identity/ark_identity.py
func New ¶
New returns an initialized CyberArk Identity client using a default service discovery client.
func (*Client) LoginUsernamePassword ¶
LoginUsernamePassword performs a blocking call to fetch an auth token from CyberArk Identity using the given username and password. The password is zeroed after use. Tokens are cached internally and are not directly accessible to code; use Client.AuthenticateRequest to add credentials to an *http.Request.