Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Hint to use add when password has changed (#163)
Browse files Browse the repository at this point in the history
I previously suggested this in #127, just providing a PR for it.
  • Loading branch information
bazzargh authored and nickatsegment committed Jun 12, 2019
1 parent 717738c commit 722162b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 722162b

Please sign in to comment.