Authenticate before getting redirected to Magento.