How to Authenticate to the WebDAV API?

There is oidc-agent which makes oidc more usable from the cli.

See the rclone docs as an example how to use it: WebDAV (rclone.org)

Or for curl: General Usage - oidc-agent (gitbook.io)