getAuthByKey: added option to use object definition instead of string only

Using grunt-prompt or other sources to input passphrase. Therefore we need to work with grunt-config based auth objects, too.