This document describes how to allow Office365 API's server to server access for emakin rest clients.
Creating Service Account
Before allowing the access you need to register emakin as an application. This step is already configured for cloud configuration and required only for on-premises.
- Login to https://apps.dev.microsoft.com
- Select type of an application as a "Web"
- Enter name of application (ex: emakin)
- Enter callback paths as following addresses
- Create a new application secret by clicking on "Generate New Key Pair"
Download the generated PFX file.
Configuring Emakin for Office365 Login Service
- Open the workflow.config file to add Office365 as login service
Add a new element as into loginServices section.
Code Block <add clientType="Office365" enabled="true" clientId="<applicationClientId>" clientSecret="<applicationClientSecret>" scope="User.ReadBasic.All" serviceAccountId="<applicationClientId>" serviceAccountKey="<pathToPFXFile>;<password>" />Start a new Edit Domain task from the Administration menu.language xml - Expand the Office 365 login service
- Enter the registered Office 365 credentials
In a service account key; you can specify the following formats;
If certificate is stored in local server
FILE;<CertificateFilePath>;<CertificatePassword>
- If you don't have local access to the server you can also specify with:
- BASE64;<CertificateBase64>;<CertificatePassword>
- URL;<CertificateFileUrl>;<CertificatePassword>
Configuring Emakin for One Drive for Business Integration
If you want to enable One Drive; add new element into fileServices section.
Code Block language xml <fileServices> <add clientType="Desktop" /> <add clientType="Webcam" /> <add clientType="OneDrive" scope="Files.Read.All"/> </fileServices>
If you want to allow offline access to OneDrive API without user interaction please , please add the "offline" scope with space seperated.
...
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | |||
---|---|---|---|
| |||
|