I tried to add methods from documentation but I did not help. I also tried to rewrite it to SOAP::Lite and use methods that I mentioned but no success.
The only way I can authenticate is when I put username and password in URL like this: https://username:password@example.com. But in this case the password appears unencrypted in server logs.
There is digest authentication enabled on server but should not these methods handle it automatically? This is the response header I get from server:
HTTP/1.1 401 Unauthorized
Date: Tue, 27 Mar 2018 13:23:32 GMT
Server: Microsoft-IIS/7.5
WWW-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="+Upgrade
+d+v10b38d21e7aaf1202a77846a2fe9d2bd901d0c2cdcec5d30156158f0a13e8aeec6
+774eb0a8e77f7baeeac127503c4b3e86a776f449098b7a4",charset=utf-8,realm=
+"Digest"
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="example.com"
Content-Length: 1293
Content-Type: text/html
Client-Date: Tue, 27 Mar 2018 13:23:32 GMT
Client-Peer: xxx.xxx.xxx.xxx:port
Client-Response-Num: 1
Client-SSL-Cert-Issuer: something
Client-SSL-Cert-Subject: something
Client-SSL-Cipher: ECDHE-RSA-AES256-SHA
Client-SSL-Socket-Class: IO::Socket::SSL
Title: 401 - Unauthorized: Access is denied due to invalid credentials
+.
X-Powered-By: ASP.NET
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.