-
Notifications
You must be signed in to change notification settings - Fork 2
Office365 Module
Justin Angel edited this page Aug 19, 2020
·
11 revisions
The office365_api module makes use of the O365 package.
Note: The author is not an expert on implementing Azure applications, or Azure anything for that matter. It behooves the reader to consider these configurations insecure. This is an of a "long enough to make it work" configuration.
An Azure App has to be registered for the sending domain in order for Postage to send emails on its behalf. This guidance has been largely adapted from the O365 package page and should assist with the registration process.
- As an administrative user, using your domain credentials at Microsoft's Admin Portal.
- Visit this URL to access RegisteredApps
- Click New registration
- In the Register an application form, apply the following configurations
- Name - Enter Postage
- Supported account types - Select Accounts in any organizational directory(Any Azure AD directory - Multitenant)
-
Redirect URI (optional) - Select Web from the drop down and enter this URI:
https://login.microsoftonline.com/common/oauth2/nativeclient
- Submit the form and take note of the Application (client) ID value for future reference
- Click Certificates & secrets from the left-hand menu
- Click the plus (+) symbol beside "New client secret"
- In the pop-up window, supply Postage as the name and select a proper lifetime for the token. One year should suffice without issue.
- Copy the value of the new secret. Note: This step is critical as the value will not be visually displayed a second time and is required for authentication.
- Click API Permissions in the left-hand menu.
Authentication is a bit funky.