open-consul/command/login
Luke Kysow eb84a856c4
Give descriptive error if auth method not found (#10163)
* Give descriptive error if auth method not found

Previously during a `consul login -method=blah`, if the auth method was not found, the
error returned would be "ACL not found". This is potentially confusing
because there may be many different ACLs involved in a login: the ACL of
the Consul client, perhaps the binding rule or the auth method.

Now the error will be "auth method blah not found", which is much easier
to debug.
2021-05-03 13:39:13 -07:00
..
login.go acl: add auth method for JWTs (#7846) 2020-05-11 20:59:29 -05:00
login_oss.go acl: add auth method for JWTs (#7846) 2020-05-11 20:59:29 -05:00
login_test.go Give descriptive error if auth method not found (#10163) 2021-05-03 13:39:13 -07:00