Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharepoint _api/contextinfo fails with 401 Unauthorized using PostMan

Im currently using Postman app to try the various Sharepoint Api.

To retrieve the RequestDigest i understand there has to be an api call to /_api/contextinfo with nothing in Body and Accept as application/json; odata=verbose in the Header. However i get 401 AUTHORIZED error as return rather than the digest value Postman screenshot

I have tried setting the Authorization to Basic in the first tab and entered the domain credentials (which has access to the site) however it still fails.

How to resolve the error

like image 784
Sujit Jadhav Avatar asked Oct 17 '22 06:10

Sujit Jadhav


1 Answers

I faced the same issue with Postman Desktop application.

The solution I found is to use the NTLM Authentication.

NTLM Authentication in Postman

However, I still have to figure out how to perform this from an external Java application that would reach the REST API.

like image 107
Kwoinkwoin Avatar answered Oct 20 '22 16:10

Kwoinkwoin