You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/tests/cli/boundary/_auth.bash

14 lines
375 B

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
function login() {
export BP="${DEFAULT_PASSWORD}"
boundary authenticate password -auth-method-id $DEFAULT_AMPW -login-name $1 -password env://BP
}
function login_ldap() {
export BP="${DEFAULT_PASSWORD}"
boundary authenticate ldap -auth-method-id $DEFAULT_AMPW -login-name $1 -password env://BP
}