Commit 25829ac5 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Expand log message when requestor uses wrong authentication method

parent d0e64d0e
......@@ -182,7 +182,8 @@ func (conf *Configuration) initialize() error {
for name, requestor := range conf.Requestors {
authenticator, ok := authenticators[requestor.AuthenticationMethod]
if !ok {
return errors.Errorf("Requestor %s has unsupported authentication type", name)
return errors.Errorf("Requestor %s has unsupported authentication type %s (supported methods: %s, %s, %s)",
name, requestor.AuthenticationMethod, AuthenticationMethodToken, AuthenticationMethodHmac, AuthenticationMethodPublicKey)
}
if err := authenticator.Initialize(name, requestor); err != nil {
return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment