Register your App
First things first. As with every OAuth provider, you will first need to register your App with Microsoft. You can do this as follows:
- Sign in to Microsoft Application Registration Portal using your Microsoft account
- Click on "Add an app" to the right
- Enter a name for your application in the the Application Name field and click on "Create" button
- After the application is created you will have to generate a new password. Click on the "Generate New Password" button uynder the "Application Secrets" sub-section.
- A pop-up dialog will display your generated password. Make a note of that as it will be used later in the Configuration section.
- Under the "Platforms" sub-section, click on the "Add Platform" button and select "Web"
- Enter the redirect URL as advised [here]((/7.10.2/middleware/3rd_party_integrations.html#common-preparations).
- Under the "Microsoft Graph Permissions" you can enable the "Delegated Permissions" that are relevant for your project. The middleware currently supports functionality for:
- The following permissions are shared among both OneDrive and Contacts and should be enabled right away:
In addition you have to configure the following properties in file
- Enable the OAuth connector to Google OAuth:
- Set the API key and secret, which is are the "Application Id" and the password you generated earlier in the "Register your App" section, to call the sign-in API:
- Set the redirect URL. Please ensure the following conditions are met:
- The redirect URL specified in the Google App needs to be the same as the one specified by this property.
- The redirect URI uses "https://" as protocol
- The redirect URI follows the pattern: "https://" + <host-name> + "/ajax/defer"
You can define them system-wide or via the config cascade mechanism.
Upgrade to Microsoft Graph API
Back in 2017 Microsoft announced the deprecation of Live SDK and Live Connect APIs, urging API consumers to migrate to their new Graph API. The deprecated APIs will no longer be available after November 1st, 2018.
Regarding specific module APIs within the Live SDK and Live Connect, the Contacts API functionality ceased to return user data on December 1st, 2017 and the OneDrive REST API on November 1st, 2018.
Furthermore, the OAuth tokens obtained for the previously, now deprecated APIs, will not work with the new Graph API, hence all consumers are advised to generate new tokens via the Microsoft Application Registration Portal for their Apps.
The following Microsoft Graph Permissions are required to enable contact synchronisation:
- People.Read.All (Admin Only
The permissions can be enabled via the Microsoft Application Registration Portal.
Note that the contact synchronisation will NOT happen automatically every time a new contact is added to the third-party provider's address book. A full sync will happen once the user has created her account, and periodically once per day. The periodic update can be enabled or disabled via the
com.openexchange.subscribe.autorun server property.
Also note that this is an one-way sync, i.e. from the third-party provider towards the AppSuite and NOT vice versa.
Finally, ensure that in case of an upgrade to 7.10.2 you will need to generate new access tokens. More information here.
To setup the Microsoft OneDrive file store you have to install the package
The following Microsoft Graph Permissions are required to enable the OneDrive cloud storage.
Ensure that in case of an upgrade to 7.10.2 you will need to generate new access tokens. More information here.