Integrating Web Author with SharePoint Online
The Oxygen XML Web Author includes a plugin that allows you to use Oxygen XML Web Author to edit files stored in a SharePoint Online repository. You can configure your SharePoint integration to use the OAuth 2.0 authentication flow to access files stored in a public or private repository. You will then have access to some file checking in/out toolbar buttons that are specific to SharePoint.
Configuring a SharePoint Integration
-
Register a new application in the Azure Management Portal at: https://portal.azure.com/.
For details about registering an application in the Azure Management Portal, see the following articles:Tip: Your situation may require a different procedure, but here is an example of a common procedure for the registration process:- Go to: https://portal.azure.com/.
- Sign in with your credentials.
- Go to your Manage Azure Active Directory.
- Choose the App registrations category.
- Click New registration on the header.
- Complete the form:
- Enter a name (e.g. "Oxygen XML Web Author").
- For Redirect URI, set the application type to Web.
- For Redirect URI, enter the Web Author redirect URL in the following format: [OXYGEN_WEBAUTHOR_URL]/plugins-dispatcher/sp-oauth where [OXYGEN_WEBAUTHOR_URL] is the location where Web Author is deployed (for example, http://www.mydomain.com/oxygen-xml-web-author/plugins-dispatcher/sp-oauth).
- Click Register. The app is created.
- Choose the API permissions category. Add
permissions by clicking the Add a permission button, selecting the
relevant permissions, and pressing Add permission:
- Microsoft Graph > Delegated permissions > Sites.Read.All (reads items in all site collections).
- SharePoint > Delegated permissions > AllSites.Write (reads and writes items in all site collections).
- Choose the Authentication category. In the
Platform configurations section, ensure that there is a platform
defined with the following configuration:
- Platform type: "Web".
- Redirect URIs: The Web Author redirect URL in the following format: [OXYGEN_WEBAUTHOR_URL]/plugins-dispatcher/sp-oauth where [OXYGEN_WEBAUTHOR_URL] is the location where Web Author is deployed (for example, http://www.mydomain.com/oxygen-xml-web-author/plugins-dispatcher/sp-oauth).
- Choose the Certificates & secrets category.
- In the Client secrets section, click New client secret.
- Select an expiration time and click Add.
- Make note of the newly added Client Secret for later use.
- Choose the Overview category and make note of the Application (client) ID for the next step.
- Go to the Administration
Page, in the Plugins section, click on the
Configure
icon for the SharePoint plugin, and enter the Client
ID, Client Secret, and Redirect
URL in the Plugin configuration dialog box. You can
also configure the following optional settings:
- Autosave interval - Specifies the time
in seconds between auto-saves. To disable the autosave feature, change this value to
0
. - Allow anyone to Check-In a document - If this option is selected, all users can check in a document even if they did not check it out themselves.
- Autosave interval - Specifies the time
in seconds between auto-saves. To disable the autosave feature, change this value to
- Restart Oxygen XML Web Author.
Result: After completing the configuration, you will have access to some SharePoint-specific toolbar buttons that allow you to check in/out files. Also, when you check out files from your SharePoint site, the file name will be decorated with a distinctive mark () to indicate that the file is currently checked out.