I am trying to remotely update SharePoint Online data (or self-hosted for that matter) within Azure.Net C# and would prefer to use JSON. I am trying to find how to execute the authentication - I think once I have that I the rest will be pretty straight forward. I have looked at a lot of MS docs and blogs, but none seem to provide a good example of how to do the authentication. For example:
SharePoint Online authentication failure Uses a web request and SOAP data
SharePoint Online: Authenticating.NET Client Object Model in Office 365 Which seems to be using a NuGet package
Get to know the SharePoint REST service Where the REST API with OData is used (but with no good Authenticate example that I can find)
- Is there a standard (and easy) way to authenticate?
- Does the SharePoint account need to provide a user/password
I probably am missing something - seems like a simple Rest API with an Authenticate would suffice? If someone knows of a good site with a full example that would be awesome.