Update password auth method flags to fit current standards

This commit is contained in:
Jeff Mitchell committed 2020-08-13 18:32:58 -04:00
1 parent bb6b189513
commit d3a1cd949b
2 files changed
+21 -25

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ import (
// TODO: This will need to be changed when we add Auth Method API to boundary. We'll also need a better
// way to handle different auth method types.
func (c *AuthMethodsClient) Authenticate(ctx context.Context, authMethodId, name, password string, opt ...Option) (*authtokens.AuthToken, *api.Error, error) {
func (c *AuthMethodsClient) Authenticate(ctx context.Context, authMethodId, loginName, password string, opt ...Option) (*authtokens.AuthToken, *api.Error, error) {
if c.client == nil {
return nil, nil, fmt.Errorf("nil client in Authenticate request")
}
@@ -19,7 +19,7 @@ func (c *AuthMethodsClient) Authenticate(ctx context.Context, authMethodId, name
reqBody := map[string]interface{}{
"credentials": map[string]string{
"login_name": name,
"login_name": loginName,
"password": password,
},
}