From 722162b179e908df629559ce39e68a8033dc4d25 Mon Sep 17 00:00:00 2001 From: bazzargh Date: Wed, 12 Jun 2019 22:41:06 +0100 Subject: [PATCH] Hint to use add when password has changed (#163) I previously suggested this in #127, just providing a PR for it. --- lib/okta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/okta.go b/lib/okta.go index 03f4088d..3fac852d 100644 --- a/lib/okta.go +++ b/lib/okta.go @@ -164,7 +164,7 @@ func (o *OktaClient) AuthenticateUser() error { log.Debug("Step: 1") err = o.Get("POST", "api/v1/authn", payload, &oktaUserAuthn, "json") if err != nil { - return fmt.Errorf("Failed to authenticate with okta: %#v", err) + return fmt.Errorf("Failed to authenticate with okta. If your credentials have changed, use 'aws-okta add': %#v", err) } o.UserAuth = &oktaUserAuthn