I'm (very) new to SharePoint, and have been tasked with creating what was described as a "lightweight Angular form" to submit items to a list. The form is supposed to be embedded into a page, so it's nothing too grand.

However, the project has been giving me no end of authentication problems.

I've found a few resources that seem to pertain almost directly to my situation.

Am I correct in my assumption that the approach I've been taking will not work?
Is there an obvious solution that I'm missing?

  • Is this form a SharePoint page? If so, you need to use the request digest that should be on the page in order to do any POST requests. If this is an app, then you have to do the oauth dance, which isn't difficult with the classes that Microsoft bundles in apps. I can't say for certain without seeing what you're trying, but it should be doable regardless. – wjervis Nov 15 '16 at 18:53
  • @wjervis actually you need request digest for every POST, no matter are you in SharePoint or not... – Sergei Sergeev Nov 16 '16 at 6:09
  • @Kai, not if you have a bearer token – wjervis Nov 16 '16 at 11:52
  • @wjervis yes, this is the only exception. But I can call SharePoint from outside without bearer token. – Sergei Sergeev Nov 16 '16 at 11:54
  • @Kai, Really? Didn't know that. Thought the bearer token was required. Though, I suppose if you can authenticate with your credentials, then you wouldn't need oauth, and then the digest would be needed again. – wjervis Nov 16 '16 at 11:58

Your Answer

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

Browse other questions tagged or ask your own question.