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