Commit Graph

14 Commits

Author SHA1 Message Date
EstrellaXD
cd233881bd fix(backend): restore sync Database interface, isolate async for passkey
The previous refactoring broke backward compatibility by converting
Database from Session-extending sync class to a standalone async class.
This broke RSSEngine, startup code, and auth flows.

- Restore Database(Session) with sync interface for legacy code
- Restore UserDatabase to sync methods
- Restore security/api.py and auth.py to sync calls
- Passkey API now uses async_session_factory directly
- PasskeyAuthStrategy uses async sessions independently
- Remove unused db_session from engine.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:59:26 +01:00
EstrellaXD
027222a24d fix: resolve WebAuthn passkey compatibility with py_webauthn 2.7.0
- Fix aaguid type (str not bytes) in registration verification
- Fix missing credential_backup_eligible field (use credential_device_type)
- Remove invalid credential_id param from verify_authentication_response
- Fix origin detection to use browser Origin header for WebAuthn verification
- Add async database engine support (aiosqlite) for passkey operations
- Convert UserDatabase to async-compatible with sync/async session detection
- Update Database class to support both sync and async context managers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:07:18 +01:00
100gle
3ead13f4b0 chore(format): fix the ruff checking issue 2023-10-02 13:16:31 +08:00
EstrellaXD
6a73d9ec41 fix: user update issue, tmdb leak poster issue. 2023-09-23 22:32:57 +08:00
EstrellaXD
f2d87f346e fix: login failed message. 2023-09-19 14:14:51 +08:00
EstrellaXD
aeac217138 fix: version update. rss add bugs. 2023-09-06 23:49:20 +08:00
EstrellaXD
52b9dac72b fix: refresh-token bug. 2023-09-06 21:42:32 +08:00
EstrellaXD
d6b36e5225 change:
- add random pwd_key.
- backend auth change from Auth token to cookies
2023-09-06 21:19:59 +08:00
EstrellaXD
e2a218b744 change: api change. 2023-08-22 15:27:09 +08:00
EstrellaXD
69a4daca0c chore: small change in api. 2023-08-08 14:12:19 +08:00
EstrellaXD
1c4e8dc293 fix: old data support problem. 2023-08-07 20:14:45 +08:00
100gle
e336fd7402 chore: style with black 2023-06-13 22:15:52 +08:00
100gle
082667f5c6 feat: make router be modular and isolated 2023-06-08 22:18:13 +08:00
zthxxx
069a86faa0 chore: move Auto_Bangumi/src -> Auto_Bangumi/backend/src, prepare for merge WebUI repo 2023-06-06 22:33:00 +08:00