Office365 Service Authentication
This document describes how to allow Office365 API's server-to-server access for emakin rest clients.
Creating Service Account
Before allowing access you need to register emakin as an application. This step is already configured for cloud configuration and is required only for on-premises.
Login to https://apps.dev.microsoft.com
Select the type of an application as a "Web"
Enter the name of the 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 Integrated Service
Login into Host Administration Panel panel.
Locate the "Integrated Services" from application settings.
Add a new service that uses the "Office365" service type.
Specify the name of this integration (Ex. Service_Office365)
Expand the row details.
Enter the "Client Id" and leave "Client Secret" empty.
Enter the "Service Account Id" you generated in service account.
Select "Service Account Key Type" field as following;
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
Login in to Host Administration Panel panel.
Locate the "Other Services" from application settings
Add new file service that using "Office 365" client type with Office365 integration service.
Enter "File.ReadWrite.All Sites.ReadWrite.All" in scope setting.
If you want to allow offline access to OneDrive API without user interaction, please add the "offline" scope with space seperated.
Related articles
Copyright © 2010 - 2023 Emakin. All rights reserved.