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.
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:
Authorization token endpoint: The ACS URL. In SharePoint Online with Azure ACS, the URL follows this pattern:
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:
Awesome! Now that your SharePoint repository is configured, you can mount it in Liferay DXP’s Documents and Media Library.