Does PrinterOn Enterprise support OAuth authentication to Exchange Web Services? - c07721400
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 authentication:
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. For 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. For example, https://login.windows.net/printeron.onmicrosoft.com.
Client ID: The unique ID of your EWS app registration, generated by Azure AD. For example. 92e40241-d684-443a-9a12-690a2769156d.
Server Name: The resource server name. https://outlook.office365.com.
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.
- Login Azure portal with Office 365 account: https://portal.azure.com.
- Click Azure Active Directory on the left panel.
- Click App registrations on left panel of the opened page.
- Click +New application registration .
- Input a name, for example, "PrinterOnEWS".
- Specify who can authenticate (single tenant recommended).
- Under Redirect URI , choose public client/native (mobile and desktop) (no value is required in the field to the right).
- Click Register .
- 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.
- From the left hand menu, click Authentication .
- Under Advanced settings , click Yes to treat the application as a public client.
- Save changes.
- From the left hand menu, click API permissions .
- Click +Add a permission .
- From Supported legacy APIs , choose Exchange .
- Choose Delegated permissions .
- Expand EWS .
- Enable EWS.AccessAsUser.All .
- Click Add Permissions .
- Click Grant admin consent .
- Choose Yes to grant permission. The Azure configuration is now complete and PrinterOn Enterprise can now be configured to connect to a mailbox and authenticate via OAuth.