Commit Graph
17 Commits
Author SHA1 Message Date
Christoph PolcinandChristoph Polcin d59c1705b2 Explicit assignment of struct fields 2023-06-22 13:32:03 +02:00
Christoph PolcinandChristoph Polcin ad27fc07a7 Adds interface documentation 2023-06-22 13:32:03 +02:00
Christoph PolcinandChristoph Polcin ca40e2802e Feat: Authentication API
The changes simplify the `req` method by moving the
authentication-related code into the API.
This makes it easy to add additional authentication methods.

The API introduces an `Authorizer` that acts as an
authenticator factory. The authentication flow itself
is divided down into `Authorize` and `Verify` steps in order
to encapsulate and control complex authentication challenges.

The default `NewAutoAuth` negotiates the algorithms.
Under the hood, it creates an authenticator shim per request,
which delegates the authentication flow to our authenticators.

The `NewEmptyAuth` and `NewPreemptiveAuth` authorizers
allow you to have more control over algorithms and resources.

The API also allows interception of the redirect mechanism by setting
the `XInhibitRedirect` header.

This closes: #15 #24 #38
2023-06-22 13:32:03 +02:00
Christoph Polcin 3282f94193 Feat: Makefile adds target dependencies 2023-02-03 21:22:12 +01:00
Christoph Polcin 200a600c02 Add TestWriteStreamFromPipe 2022-11-02 16:54:56 +01:00
Christoph Polcin 17255f2e74 Updates badges 2022-10-16 01:27:16 +02:00
Christoph Polcin 937a18c9a3 removes travis-ci 2022-10-16 01:22:06 +02:00
Christoph Polcin d2a480ffa9 updates workflows 2022-10-16 01:13:50 +02:00
Christoph Polcin 8528c01163 updates API 2022-10-16 01:02:00 +02:00
Christoph Polcin bf6102194f fix: Write creates parent collections on 404 2022-10-16 00:59:14 +02:00
Christoph Polcin 2c20e7e763 Revert "feat: handle 404 on propfind (#57)"
This reverts commit 8190232c06.
2022-10-16 00:59:14 +02:00
Christoph Polcin fbeb69f25b Add client tests 2022-10-16 00:59:05 +02:00
Christoph Polcin 4adca27344 uses log instead of fmt 2022-10-15 14:44:49 +02:00
Christoph Polcin a047320e42 Updates README 2022-01-27 16:33:26 +01:00
Christoph Polcin b5bd04e2b5 Escapes destination path on copy and move #42 2022-01-27 16:32:05 +01:00
Christoph Polcin 86f8378cf1 Update API description 2021-04-27 23:21:33 +02:00
Christoph Polcin bdacfab947 update README due to API changes 2020-09-29 10:07:39 +02:00