alist/server/handles
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
..
auth.go feat: invalidate old token after changing the password (close #5515) 2023-11-13 15:22:42 +08:00
down.go feat: add ignore direct link params (close #5434) 2023-10-26 19:21:09 +08:00
driver.go style: shorten name `operations` to `op` 2022-08-31 21:01:15 +08:00
fsbatch.go fix: regexp rename error (close #4644 in #4653) 2023-06-26 15:15:57 +08:00
fsmanage.go feat: add task info to resp of add task api (close #5579) 2023-12-03 14:44:20 +08:00
fsread.go feat: add `header` to `meta` (ref #5317) 2023-10-02 16:43:29 +08:00
fsup.go feat: add task info to resp of add task api (close #5579) 2023-12-03 14:44:20 +08:00
helper.go fix: reflected XSS vulnerability plist api 2023-11-24 16:46:48 +08:00
index.go fix: mark progress as done after clear (#3086) 2023-01-18 09:39:32 +08:00
meta.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
offline_download.go feat: add task info to resp of add task api (close #5579) 2023-12-03 14:44:20 +08:00
search.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
setting.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
ssologin.go fix: incorrect key of oidc username (close #5670) 2023-12-10 13:17:56 +08:00
storage.go feat: batch reload all storages (close #2762 pr #2775) 2022-12-21 19:21:18 +08:00
task.go feat: add task info to resp of add task api (close #5579) 2023-12-03 14:44:20 +08:00
user.go fix: missed update user's password 2023-08-07 18:51:54 +08:00
webauthn.go feat: add support for client-side discoverable WebAuthn login (#5722) 2023-12-24 15:21:17 +08:00