Commit Graph

1176 Commits

Author SHA1 Message Date
1647aa2f1e ♻️ Proper folder system to index 2025-11-14 01:03:59 +08:00
b137021b1f File index controller returns folders 2025-11-13 01:32:25 +08:00
ffca94f789 🐛 Fix some issues when creating duplicate indexes and instant upload triggered won't create index 2025-11-13 01:12:13 +08:00
e2b2bdd262 File index 2025-11-12 22:09:13 +08:00
ce715cd6b0 👔 Check in algo v3 2025-11-11 01:03:26 +08:00
f7b3926338 👔 Optimize push notification logic 2025-11-11 00:38:43 +08:00
68cd23d64f 🐛 Fixes in track tasks 2025-11-10 23:58:12 +08:00
db7d994039 🐛 Fix bugs 2025-11-10 02:06:21 +08:00
741ed18ce5 🐛 Fixes for drive task tracking 2025-11-10 01:53:58 +08:00
2bfb50cc71 🐛 Dozens of bug fixes to new task system 2025-11-10 00:14:41 +08:00
db98fa240e ♻️ Merge the upload tasks and common tasks handling 2025-11-09 21:18:13 +08:00
d96937aabc 🐛 Fixes in the upload tasks 2025-11-09 18:49:35 +08:00
dc0be3467f 🚚 Move emails razor templates 2025-11-09 14:08:13 +08:00
6101de741f ♻️ Refactored emails 2025-11-09 14:06:12 +08:00
6c8ad05872 🐛 Fix event cal ToDictonary close #6 2025-11-09 11:01:29 +08:00
f5b37e9419 🎉 Add the mail template project 2025-11-09 03:19:35 +08:00
ce5f3434eb File Persistent Task 2025-11-09 03:19:21 +08:00
c08503d2f3 ♻️ Refactored files service 2025-11-09 01:46:24 +08:00
c8fec66e07 ⬆️ Upgrade 2025-11-09 01:35:58 +08:00
61b49377a7 Permission controller for admins 2025-11-08 21:03:18 +08:00
0123c74ab8 ♻️ Refactored permission service 2025-11-08 21:03:03 +08:00
637cc0cfa4 Prevent from loading nested replied post 2025-11-08 13:22:03 +08:00
94a0ec71da Prevent from loading nested replied post 2025-11-08 13:21:36 +08:00
1351db5482 ♻️ Updated steam presence update logic 2025-11-06 23:47:35 +08:00
3e98ac29b7 🐛 Fix OpenID 2.0 state handling (steam) 2025-11-04 23:43:43 +08:00
09625335f0 Steam presence service 2025-11-04 23:40:57 +08:00
ee9ad6d87f ⚗️ Put steam connection to test 2025-11-04 23:29:39 +08:00
67fc82a8fb 🐛 Fix quartz job registeration 2025-11-04 22:34:52 +08:00
58e79655e8 ♻️ Refactored presence update logic 2025-11-04 22:13:19 +08:00
f271681b5d Ring service now provide batch variant of get websocket status endpoint 2025-11-04 22:04:36 +08:00
3e838cfdb5 🐛 Fix email still using old translation keys 2025-11-04 02:07:17 +08:00
e0e00d023f 🐛 Fix mail factor code use wrong title and template 2025-11-04 02:00:54 +08:00
433230b495 :drunk: AIGC steam connection support (w.i.p) (skip ci) 2025-11-04 01:28:51 +08:00
b8fa5f5f24 More filters available in list post 2025-11-02 23:08:44 +08:00
091fbd857e 🐛 Fix spotify presence lease again 2025-11-02 16:25:36 +08:00
bfa9bedeea ♻️ Replace the self-impl spotify api to use lib 2025-11-02 16:13:36 +08:00
74f8221be4 🐛 Fix Spotify OIDC 2025-11-02 16:00:02 +08:00
6817ab6b56 Spotify OAuth & Presence 2025-11-02 15:32:20 +08:00
c74ab20236 ♻️ Refactor OpenID: Phase 4: Advanced Architecture - Strategy Pattern Implementation
- Added comprehensive user info strategy pattern with IUserInfoStrategy interface
- Created IdTokenValidationStrategy for Google/Apple ID token validation and parsing
- Implemented UserInfoEndpointStrategy for Microsoft/Discord/GitHub OAuth user data retrieval
- Added DirectTokenResponseStrategy placeholder for Afdian and similar providers
- Updated GoogleOidcService to use IdTokenValidationStrategy instead of custom callback logic
- Centralized JWT token validation, claim extraction, and user data parsing logic
- Eliminated code duplication across providers while maintaining provider-specific behavior
- Improved maintainability by separating concerns of user data retrieval methods
- Set architectural foundation for easily adding new OIDC providers by implementing appropriate strategies
2025-11-02 15:05:42 +08:00
b9edf51f05 ♻️ Refactor OpenID: Phase 3: Async Flow Modernization
- Added async GetAuthorizationUrlAsync() methods to all OIDC providers
- Updated base OidcService with abstract async contract and backward-compatible sync wrapper
- Modified OidcController to use async authorization URL generation
- Removed sync blocks using .GetAwaiter().GetResult() in Google provider
- Maintained backward compatibility with existing sync method calls
- Eliminated thread blocking and improved async flow throughout auth pipeline
- Enhanced scalability by allowing non-blocking async authorization URL generation
2025-11-02 15:05:38 +08:00
74a9ca98ad ♻️ Refactor OpenID: Phase 2: Security Hardening - PKCE Implementation
- Added GenerateCodeVerifier() and GenerateCodeChallenge() methods to base OidcService
- Implemented PKCE (Proof Key for Code Exchange) for Google OAuth flow:
  * Generate cryptographically secure code verifier (256-bit random)
  * Create SHA-256 code challenge for authorization request
  * Cache code verifier with 15-minute expiration for token exchange
  * Validate and remove code verifier during callback to prevent replay attacks
- Enhances security by protecting against authorization code interception attacks
- Uses S256 (SHA-256) code challenge method as per RFC 7636
2025-11-02 15:05:19 +08:00
4bd59f107b ♻️ Refactor OpenID: Phase 1: Code Consolidation optimizations
- Add BuildAuthorizationParameters() method to reduce authorization URL duplication
- Update GoogleOidcService to use common parameter building method
- Add missing using statements for AppDatabase and AuthService namespaces
- Improve code reusability and eliminate 20+ lines of repeated authorization logic per provider
2025-11-02 15:05:04 +08:00
08f924f647 💄 Optimize oidc provider 2025-11-02 14:35:02 +08:00
5445df3b61 ♻️ Optimized auth service 2025-11-02 14:26:07 +08:00
a377ca2072 👔 Change magic spell generate logic 2025-11-02 13:07:59 +08:00
623e7a5771 🐛 Fix magic spell use wrong url 2025-11-02 13:02:30 +08:00
0351a2b4fa 💄 Optimize settle publisher service logic 2025-11-02 12:19:35 +08:00
322dee4453 Publisher rewarding 2025-11-02 11:59:02 +08:00
5e5f4528b9 Social credit validation and recalculation 2025-11-02 02:11:34 +08:00
70fdc247e7 🐛 Fix realm lost info when transfering between services 2025-11-02 01:52:42 +08:00