My goal is to have a web app that downloads files from Sharepoint Subscription Edition using the Sharepoint REST API. I don't have access to a Sharepoint Subscription Edition site for development, however, so I was hoping to use Sharepoint Online for initial development. Does msal-browser
work with Sharepoint Subscription Edition, though, and can I use tokens I get from it as bearer tokens to Sharepoint REST API calls in Sharepoint Subscription Edition, like I can with Sharepoint Online?
I have read that Sharepoint Subscription Edition can be set up to authenticate using Microsoft Entra, and so this gave me some hope that the answer is "yes". However, in reading the Sharepoint Server docs I have not come across app registration instructions like those for Sharepoint Online where I register an app, set a redirectUri
and get a client_id
that I can use with msal-browser
to acquire a bearer token for Sharepoint REST API calls. Instead I have come across "apps for Sharepoint Server" where the process seems very different from the Sharepoint Online app registration process.
In short: can I use msal-browser
to authenticate when using (an appropriately configured) Sharepoint Subscription Edition, and use tokens acquired with it to call the Sharepoint (Subscription Edition) REST API? If so, are there certain MS doc pages I should be looking at to understand the necessary Sharepoint Server-side configuration as well as app registration?