I have a Office 365 Organizational SharePoint Online Account. I want to Add Few Tasks in one of the list programmatically.
When I tried to access the lists using the URL above using a REST Client (While I was signed in to SharePoint in the browser), I was able to successfully access the API. I provided following things in the header
Accept, Content Type and X-RequestDigest
My Question is how do I authenticate before accessing the API's.
I also tried to authenticate (REST Call using Client - Not logged in the browser) using this URL - https://login.microsoftonline.com/extSTS.srf and passing the XML body with username and password.
But, it returned me with following error
Direct login to WLID is not allowed for this federated namespace
Please guide me on how to Authenticate using Organizational Credentials to access SharePoint REST API.
Thanks in Advance.