skshetry / webdav4

WebDAV client library with a fsspec based filesystem and a CLI.
https://skshetry.github.io/webdav4
MIT License
61 stars 17 forks source link

[Feature Request] Support "Digest" authentication method #172

Closed fleimgruber closed 8 months ago

fleimgruber commented 8 months ago

I could not find any option to use "Digest" authentication instead of "Basic" authentication (http://www.webdav.org/specs/rfc2617.html).

skshetry commented 8 months ago

You can pass auth= to Client or WebdavFileSystem.

auth = httpx.DigestAuth("my_user", "password123")
client = Client(..., auth=auth)
# or,
fs = WebdavFileSystem(..., auth=auth)

See HTTPX Authentication. You can also implement custom flow if you need, see Customizing Authentication - httpx.

fleimgruber commented 8 months ago

Thanks for the quick answer and solution example, will test with that. Maybe the docs could contain a section with high-level aspects that are handled by dependencies? In any case, I think mentioning httpx somewhere would also catch a lot of people that are in skimming-mode to find a WebDAV library for their requirements.