Fix for new cert auth changes

Authentication module was passing the wrong object to check