Hi experts,
When I set up a Nav server environment in a VM and set authentication method as “UserName”. When I send the web request, the server respond with
“Digest qop=“auth”,algorithm=MD5-sess,nonce=”+Upgraded+v1bf662ec1815d6f6752d81038323ceca171e594efd392d4013f5ecd15009e16908d175b053a8741d44c753dc755b14022819a3c9b25366fc7",charset=utf-8,realm=“Digest”"
However, there is no “opaque” in the response, and I tried resend the request based on “Digest” rule both in my code and postman. Always return 401 Unauthorized error. Is that caused by missing “opaque” or I have some steps missing?
Thank in advance.
What authentication mode do you use, simple or something like OAuth 2?
I think You need to write 1 request to generate AuthorizationToken first and then use it. But it is my gess only, because we need to know more about your Web-part
I was set the authentication method as “UserName” in the server administrator and the response header shows it use Digest authentication. However, it always return 401 unauthorized error even if I was send the request based on Digest authentication.
In digest, we need to generate a second request and encrypt username and password based on the first server response. The response is missing the opaque parameter. So I was thinking it may be something missing in the server setup?
RuiningFan, You have Request to server where you setup some data in the header (more information you can see e.g. here https://www.kauffmann.nl/2017/07/18/al-web-service-examples/).
we can guess happily ever after, but it would be easier to have “raw data”… e.g. what URL or service do you use, do we have this Login inthe system… etc.