Added the 'auto_redirect' optional parameter on the authenticate method