Commit Graph

318 Commits

Author SHA1 Message Date
076bf347c8 Account friends overview endpoint 2025-11-16 12:29:56 +08:00
c69256bda6 🐛 Fix some issues in new thought system 2025-11-15 17:11:39 +08:00
6814b5690e ⬇️ Downgrade EFCore to 9 from 10 since it's not ready for use 2025-11-15 00:18:34 +08:00
78447de1b6 🔨 Update dockerfile to use dotnet 10 images as base instead of 9 2025-11-14 23:54:16 +08:00
429a08930f ♻️ Refactored the server-side versioning by move that logic to Gateway only 2025-11-14 23:49:38 +08:00
b94b288755 ⬆️ Upgrade PgSQL to 10.0.0-rc.2 2025-11-14 23:45:05 +08:00
1c50c2f822 ⬆️ Upgrade dependecies to use dotnet10 version 2025-11-14 23:01:33 +08:00
bd2943345a ⬆️ Upgrade the dotnet framework to 10.0 2025-11-14 22:11:16 +08:00
ce715cd6b0 👔 Check in algo v3 2025-11-11 01:03:26 +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
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
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
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
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
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
8f5f1efa24 🐛 Fix expired activities also be renewed 2025-11-02 00:43:35 +08:00
0f15510ac6 🗃️ Update the activity presense migration 2025-11-01 22:35:43 +08:00
3ce457e9f9 ♻️ Optimized presense activity API 2025-11-01 22:34:45 +08:00
a9168dcdc5 🐛 Fix presence activity controller 2025-11-01 18:37:31 +08:00
4ad63577ba Refreshed account presences system 2025-11-01 17:35:28 +08:00
b46a010e73 ⬇️ Downgrade the SkiaSharp in order to fix version issue between native lib and SkiaSharp
⬆️ Upgrade quartz, ffmpeg etc
2025-11-01 12:46:26 +08:00
ccd9dbcdbf 🐛 Fix dozens of issue in PaymentServiceGrpc 2025-11-01 12:37:39 +08:00
29c5971554 Add grpc reflection 2025-10-26 11:38:18 +08:00
f65a7360e2 🌐 Add missing gift claimed localization 2025-10-26 03:13:16 +08:00
3a0dee11a6 🚨 Fix warnings in the codebase 2025-10-26 02:20:10 +08:00
43be47d526 ⬆️ Upgrade dependencies 2025-10-26 02:11:50 +08:00
48067af034 ⬆️ Upgrade dependencies 2025-10-26 01:56:35 +08:00