Does it return a 401 and then try again and succeed? That's actually normal operation for a digest request. See Example with Explanation<https://en.wikipedia.org/wiki/Digest_access_authentication#Example_with_explanation> on the Digest access authentication wikipedia page.
-- Dave Cassel, @dmcassel<https://twitter.com/dmcassel> Technical Community Manager MarkLogic Corporation<http://www.marklogic.com/> http://developer.marklogic.com/ From: <[email protected]<mailto:[email protected]>> on behalf of Nikunj Vekariya <[email protected]<mailto:[email protected]>> Reply-To: Nikunj Vekariya <[email protected]<mailto:[email protected]>>, MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Wednesday, April 12, 2017 at 7:24 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] MarkLogic unexpected REST authentication (digest) I am using MarkLogic 8.0-5.4 version. I created an REST instance @port 8100. The default http configuration for authentication is digest and default user is nobody. When I pass the following curl command it throws 401 unauthorized error. curl --anyauth --user admin:admin -X PUT -d "<input/>" -H "Content-type: application/xml" http://localhost:8100/v1/documents?uri=/shakespeare/plays/a_and_c.xml Even if I replace --anyauth with --digest it throws the same error. Also if I change the default user to admin and keep authentication to digest in admin, and try to run the same curl command it throws the same error. Basically if I keep authentication to digest, it throws 401 unauthorized error message. I want to use digest in my application. How shall I proceed to it? Best, Nikunj Vekariya
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
