Skip to content

Set up modern authentication

This page only applies to the EAS proxy in PowerShell mode, not in proxy mode.

If you want the Sophos Mobile EAS proxy to use modern authentication when connecting to Exchange Online, you must install the ExchangeOnlineManagement PowerShell module. If this module is available, the EAS proxy uses modern authentication by default when connecting to Exchange Online. If that fails, for example, because you haven’t configured modern authentication for your Exchange Online account, the EAS proxy uses basic authentication.

The EAS proxy always uses basic authentication when connecting to an on-premise Exchange Server.

For information on switching from basic to modern authentication in Exchange Online, see Deprecation of Basic authentication in Exchange Online.

To get step-by-step instructions for setting up modern authentication for the EAS proxy, click the tab for your situation below.

To set up modern authentication, if you haven’t installed the EAS proxy yet, do as follows:

  1. On the computer on which you’re going to install the EAS proxy, search for the Windows PowerShell app and select Run as Administrator.

    For information on how to install Windows PowerShell if it isn’t available, see Installing PowerShell on Windows.

  2. Run the following command in Windows PowerShell to install the ExchangeOnlineManagement module:

    Install-Module -Name ExchangeOnlineManagement
    
  3. Install the EAS proxy. See Set up email access control through PowerShell.

To set up modern authentication if you’ve already installed the EAS proxy, do as follows:

  1. On the computer that has the EAS proxy installed, search for the Windows PowerShell app and select Run as Administrator.
  2. Check that the latest version of the EAS proxy is installed:

    1. For the installed version, run the following command in Windows PowerShell:

      Get-Item -Path "Registry::HKLM\SOFTWARE\Wow6432Node\Sophos\Sophos Mobile Control EAS Proxy\"
      
    2. For the latest available version, go to https://www.sophos.com/support/downloads/sophos-mobile and check the information under Standalone EAS Proxy Installer.

  3. Run the following command in Windows PowerShell to install the ExchangeOnlineManagement module:

    Install-Module -Name ExchangeOnlineManagement
    
  4. In Windows, run the Sophos Mobile EAS Proxy - Configuration Wizard app.

  5. Select the EAS proxy where Instance type is PowerShell Exchange/Office 365.
  6. Click Save without making any changes.
  7. Repeat the previous two steps if you have more than one EAS proxy instances where Instance type is PowerShell Exchange/Office 365.
  8. Complete the remaining steps of the Sophos Mobile EAS Proxy - Configuration Wizard app.