added credentials parameter to support basic-auth plugin