1

Our scenario is following:

  1. User logs in through SSO (using Azure AD) to our website.

  2. On the site we have a page that will show links to some documents from SharePoint.

  3. The page will query SharePoint 2013 on prem through its REST API to get a list of those documents.

My problem is obtaining the Bearer token that I would use for my REST API calls. https://msdn.microsoft.com/en-us/library/office/dn292553.aspx#Files

I would very much appreciate a code example on how to obtain the Bearer token.

  • Do you know how to setup SharePoint on-premise to support bearer token authentication? – Stefan Jun 4 '15 at 8:11
3

You can obtain an Azure AD access token through ADAL. There is a official JavaScript library (ADAL JS) with documentation hosted on GitHub:

ADAL for JavaScript

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.