alist/server
Feng.YJ 3eca38e599
feat: add support for client-side discoverable WebAuthn login (#5722)
* Add support for client-side discoverable in begin login

Use `(*webauthn.WebAuthn).BeginDiscoverableLogin()` to handle client-side discoverable login.

* Upgrade github.com/go-webauthn/webauthn to v0.10.0

Upgrade [go-webauthn/webauthn](github.com/go-webauthn/webauthn) library to latest.

The convenient finish login function (as FinishDiscoverableLogin) for discoverable functions has been added in the v0.9.0. [^1]

---

[^1]: https://github.com/go-webauthn/webauthn/releases/tag/v0.9.0

* Add support for client-side discoverable in validating login

Use `(*webauthn.WebAuthn).FinishDiscoverableLogin()` to handle client-side discoverable login.

> **NOTE**:
- The first param `rawID` in this callback function is unnecessary to check, it's handled by the third-party webauthn library later.
- `userHandle` param is equal to the ID returned by (User).WebAuthnID() function.
2023-12-24 15:21:17 +08:00
..
common fix: `content-type` conflicts with #5420 2023-11-24 19:22:19 +08:00
handles feat: add support for client-side discoverable WebAuthn login (#5722) 2023-12-24 15:21:17 +08:00
middlewares feat: invalidate old token after changing the password (close #5515) 2023-11-13 15:22:42 +08:00
static feat: support using external dist files (close #5531) 2023-11-18 19:56:22 +08:00
webdav fix: add error handling for webdav mkcol according to RFC 4918 (#5581) 2023-11-27 18:53:52 +08:00
debug.go chore: enable all pprof handle on debug 2023-09-07 14:56:50 +08:00
router.go feat: customize allow `origins`, `headers` and `methods` 2023-11-24 19:18:34 +08:00
webdav.go fix(webdav): optimize `HEAD` request (close #5182) 2023-09-06 16:32:51 +08:00