1

I am looking for answers if SharePoint online supports client-to-server authentication. My use case is to access Sharepoint REST API via pure JS with no server involved.

1

For your use case, I believe you can use Active Directory Authentication Library (ADAL) for JavaScript in order to have a communication with the SharePoint REST API from the client.

Mentioned below are few resources which might help you in understanding this method and implement in your solution.

If you have angular application then you can use adal-angular - npm
If you have react application then you can use react-adal - npm

You can also refer to the article from Andrew Connel on how to use ADAL JS with Angular to communicate with Sharepoint. ADAL JS & CORS with O365 APIs (Files & SharePoint)

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.