Files
threshold/internal/tests/cli/boundary/_auth.bash
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
375 B
Bash
Raw Normal View History

2023-02-02 17:15:17 -08:00
# Copyright (c) HashiCorp, Inc.
2022-08-05 18:17:07 -04:00
# SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
function login() {
2022-08-05 18:17:07 -04:00
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
}