To connect to a remote SharePoint server you must create a repository configuration:
-
Inside your Liferay DXP instance, open the Control Panel and go to Configuration → System Settings → Collaboration → Sharepoint OAuth2.
Figure 1: Use the *Sharepoint OAuth2* system setting to create a new SharePoint repository configuration.
-
Click the Add icon (
) to begin creating a new configuration.
-
In the new Repository form, specify values for the following fields (your SharePoint administrator can provide you with this information):
Name: The configuration’s name.
Authorization grant endpoint: The URL used to request OAuth2 authorization grants. The URL follows this pattern in SharePoint Online:
https://[your-site-name]/sharepoint.com/_layouts/oauthauthorize.aspx
.Authorization token endpoint: The ACS URL. In SharePoint Online with Azure ACS, the URL follows this pattern:
https://accounts.accesscontrol.windows.net/[App ID]/tokens/OAuth/2
.Client ID: The client ID.
Client Secret: The client secret.
Scope: The permission set required for your tokens. Valid scopes are configured during your app’s SharePoint registration.
Tenant ID: The Tenant ID. If you’re using SharePoint Online, you can use the same App ID you embedded in the Authorization token endpoint.
Site domain: The site domain registered for your application.
Resource: This value depends on the ACS service you use. In SharePoint Online with Azure ACS, the value follows this pattern:
00000003-0000-0ff1-ce00-000000000000/[your-site-name].sharepoint.com@[tenant ID]
.Figure 2: The New Repository form is where you specify access to the remote SharePoint server.
-
Click Save.
Awesome! Now that your SharePoint repository is configured, you can mount it in Liferay DXP’s Documents and Media Library.