I am trying to build a word add-in in visual studio 2017.This add-in would ask for the SharePoint online SiteURL, username and password from a word documents task pane and authenticate to SharePoint online. Then it would populate all lists from the SiteURL in the form of tree view. I am not able to authenticate using ClientID clientSecret and App domain. Please recommend right approach to connect to SharePoint online. Mainly i am looking for a JavaScript/rest api solution withour server side code.

1 Answer 1


Actually you are trying to make use of Remote Authentication of SharePoint Online. You have basic details.

So you have to make use of the following web service call to authenticate SPO using non server side solution.


It will be a soap request.

You can refer this answer for in-depth information about remote authentication of SPO.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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