iobroker-community-adapters/ioBroker.ical

Authorization Failed

Closed this issue · 1 comments

Describe the bug

The authorization fails with my baikal server 0.9.1.

I always get the error "Error reading from URL "...": 401"

Error reading from URL "http://192.168.178.195:82/baikal/html/dav.php/calendars/Daniel/default?export": Server responded HTTP-Statuscode=401: <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> <s:sabredav-version>4.3.0</s:sabredav-version> <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception> <s:message>No 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured. Login was needed for privilege: {DAV:}read on calendars/Daniel/default</s:message> </d:error>

With version 1.11.4 on an older controller version is was still working (baikal server has not changed).

I manually downgraded to 1.11.4 with the new controller 5.0.17 and it also fails, so the problem seems to be also related to the used controller version.

URL, user name and password and password are properly configured. If I paste the URL in a browser and enter my credentials, I can download the ICS file.

To Reproduce
Steps to reproduce the behavior:
see above

Expected behavior
Successful authorization

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version: 1.13.3 and 1.14.2
  • JS-Controller version: 5.0.17
  • Node version: v18.19.0
  • Operating system: Linux / Docker

Additional context
Add any other context about the problem here.

I solved it by changing the WebDAV authentication type of baikal from 'digest' to 'basic'.