To authenticate a Sharepoint element instance you must register an app with Microsoft. When you authenticate, use the Client Id, Client Secret, and Redirect URI as the API Key (oauth.api.key
), API Secret (oauth.api.secret
), and Callback URL (oauth.callback.url
). You'll also need your Sharepoint Site Collection URL as the Sharepoint Site Address (sharepoint.site.address
). The Sharepoint Site Collection URL is the initial portion of your URL, for example in https://cloudelements1.sharepoint.com/SitePages/DevHome.aspx
, cloudelements1
is the Sharepoint Site Collection URL.
Note the following: * Even though OAuth has security inherent in the protocol, OAuth authentication with SharePoint must use https, so your version of Sharepoint must have https enabled for OAuth to work. You can use OAuth internally as a dev environment without https, but it will not connect externally to the SharePoint element. * Note that our SharePoint Element works with the Sharepoint REST API. Not all versions of SharePoint support the 2013 API so verify the level supported by the endpoint you’re connecting to.
See the latest setup instructions in the Microsoft documentation.
These steps include instruction to register by using AppRegNew.aspx. Microsoft provides other ways, including registration through Microsoft Visual Studio. See their documentation for more details.
To register an application:
https://<site collection url>/_layouts/15/AppRegNew.aspx
, replacing <site collection url>
with your actual url. For example in https://cloudelements1.sharepoint.com/SitePages/DevHome.aspx
, cloudelements1.sharepoint.com
is the Sharepoint Site Collection URL.When enabling the Microsoft SharePoint Element, be sure that sharing is enabled by your admin in the instance of SharePoint you are connecting with. Sharing is disabled by default when Sharepoint is initially started.
For detailed steps from Microsoft, see https://support.office.com/en-us/article/turn-external-sharing-on-or-off-for-sharepoint-online-6288296a-b6b7-4ea4-b4ed-c297bf833e30.
To turn on External Sharing:
In the left pane, click sharing.