PrinterOn KB Powered By ePRINTit USA

Does PrinterOn Enterprise support OAuth authentication to Exchange Web Services? - c06614074

OAuth Configuration for using EWS with modern authentication was introduced in version 4.2.0 released in November 2018.

Required information for using EWS (Exchange Web Services) for basic authenticaService URLtion :

Service URL: The URL depends on which service you’re using. For Office 365 mail services, the URL is always as following: https://outlook.office365.com/EWS/Exchange.asmx

Mailbox Username: The email address dedicated for PrinterOn mailbox Example: printeron@xyz-company.com

Mailbox Password: The password used to connect to the EWS server and monitor the incoming mailbox. The password for the above email address

Enable OAuth: This option enables modern authentication / OAuth V2

Authority: The location from which the EWS service requests Access, ID, and Refresh tokens, which the service uses to determine the authentication status of the user. Enter the value https://login.windows.net/{tenant }.onmicrosoft.com eg. https://login.windows.net/printeron.onmicrosoft.com

Client ID: The unique ID of your EWS app registration, generated by Azure AD Example: 92e40241-d684-443a-9a12-690a2769156d

Server Name: The resource server name. https://outlook.office365.com

The additional steps that are required are within Azure:

NOTE:

If you are enabling OAuth authentication for your EWS service, you must register your EWS service with Azure AD and define the level of access to the EWS service the user has once authenticated.

  1. Login Azure portal with Office 365 account : https://portal.azure.com
  2. Click Azure Active Directory on the left panel
  3. Click App registrations on left panel of the opened page
  4. Click +New application registration
  5. Input a name " PrinterOnEWS " for example
  6. Choose who can authenticate, single tenant recommended
  7. Under Redirect URI, choose "public client/native (mobile and desktop)", no value is required in the field to the right
  8. Click Register
  9. Copy the Application (client) ID from the Overview tab presented next. This will be used in the Client ID field of the PrinterOn Enterprise configuration.
  10. From the left hand menu, click Authentication
  11. Under Advanced settings, click Yes to treat the application as a public client
  12. Save changes
  13. From the left hand menu, click API permissions
  14. Click +Add a permission
  15. From Supported legacy APIs, choose Exchange
  16. Choose Delegated permissions
  17. Expand EWS
  18. Enable EWS.AccessAsUser.All
  19. Click Add Permissions
  20. Click Grant admin consent
  21. Choose Yes to grant permission
  22. The Azure configuration is now complete and PrinterOn Enterprise can now be configured to connect to a mailbox and authenticate via OAuth