Commit Graph

149 Commits

Author SHA1 Message Date
Artemy bf2aca40d3 added https 2025-11-04 13:40:03 +07:00
Artemy ed03d6cbf7 part 2 to update applicationUrl 2025-11-04 13:03:07 +07:00
Artemy 595253d7c3 add 8080 to applicationUrl 2025-11-04 13:00:32 +07:00
Artemy 986f5ae6ea help me 2025-11-04 12:58:15 +07:00
Artemy b1e8cc83b2 update docker file 2025-11-04 12:49:41 +07:00
Artemy e6f7292bab AllowedHosts updated 2025-11-04 12:38:17 +07:00
Artemy 3385d484ff docker file update 2025-11-04 12:12:48 +07:00
Artemy c541c404b4 added new origins 2025-11-04 11:58:14 +07:00
Artemy c462d065f4 [TearDown] added 2025-11-04 11:51:37 +07:00
Artemy c720ae3667 Merge branch 'master' of https://github.com/Govor-team/Govor 2025-11-04 11:41:19 +07:00
Artemy a5a5fc4758 new app server and database + added hub and controller of user profile 2025-11-04 11:41:06 +07:00
stalcke2288969 6d4d269d74 GITBOOK-10: No subject 2025-10-31 09:17:16 +00:00
Artemy 1d442d037c Add cryptographic session key management for users
Introduces a new cryptographic key management system for user sessions, including models, DTOs, interfaces, and services for handling identity keys, signed pre-keys, and one-time pre-keys. Updates the SessionKeysController and DI configuration to use the new services. Adds related EF Core configurations and migrations, and updates the UserSession model to reference the new UserCryptoSession. Removes the obsolete ISessionKeyService interface.
2025-07-30 21:26:35 +07:00
Artemy dc560ba698 fix docs 2025-07-30 12:41:57 +07:00
Artemy 751c30dedd Add CurrentUserSessionService for session ID retrieval
Introduces ICurrentUserSessionService and its implementation to provide access to the current user's session ID via the 'sid' claim. Registers the service in DI and adds comprehensive unit tests to validate correct and error scenarios.
2025-07-25 18:07:05 +07:00
Artemy ce630fbe0a Add sessionId to JWT and update session handling
The JwtService now includes sessionId in access tokens, and all usages have been updated to pass sessionId when generating tokens. UserSession now supports public encryption and signing keys. Tests and session management logic have been updated to reflect these changes, ensuring session-specific claims in JWTs and improved session tracking.
2025-07-25 17:54:58 +07:00
Artemy e9eee5bfec UserSession namespace was changed 2025-07-24 21:37:12 +07:00
Artemy 5a734ecbdc Delete SUMMARY.md 2025-07-24 20:37:20 +07:00
Artemy 7ac5565aea re 2025-07-24 20:36:45 +07:00
Artemy 1fe6e015fc rework docs 2025-07-24 20:35:50 +07:00
stalcke2288969 a5614f7686 GITBOOK-9: No subject 2025-07-24 13:34:28 +00:00
stalcke2288969 ad4f052253 GITBOOK-8: No subject 2025-07-24 11:41:13 +00:00
stalcke2288969 e217716604 GITBOOK-7: No subject 2025-07-24 11:39:54 +00:00
Artemy a0ef087110 SessionControllerTests 2025-07-24 18:29:35 +07:00
Artemy 6a6c3d513d UserSessionRevoker 2025-07-24 18:05:11 +07:00
Artemy 15f9370dbe Created SessionController and UserSessionReader
+ tests for UserSessionReader
2025-07-24 17:03:51 +07:00
stalcke2288969 19f1ccdfd5 GitBook: No commit message 2025-07-24 08:07:52 +00:00
Artemy 53ea25f9fd small fix 2025-07-24 14:45:01 +07:00
Artemy 73f22a3ace more tests for PresenceHub 2025-07-24 13:54:59 +07:00
Artemy caefcd5827 test 2025-07-24 13:43:51 +07:00
Artemy d5299f2b79 Create PresenceHubTests.cs 2025-07-23 22:46:16 +07:00
Artemy e277159022 UserNotificationScopeServiceTests 2025-07-23 22:41:46 +07:00
Artemy be0edb0f94 Refactor user ID access in SignalR hubs and add online user tracking
Introduces IHubUserAccessor and its implementation to centralize user ID retrieval from SignalR HubCallerContext, replacing duplicated logic in ChatsHub, FriendsHub, and PresenceHub. Moves extension and mapping files to a Common directory, adds UserToUserDtoMappingAction for online status mapping, and implements OnlineUserStore with tests for tracking online users. Updates dependency injection and test code to use the new abstractions.
2025-07-23 22:21:51 +07:00
Artemy 31fdf4cb37 Add user online presence tracking and notification
Introduced interfaces and services for tracking user online status, including IOnlineUserStore, IUserNotificationScopeService, and IUserPresenceReader. Added PresenceHub for real-time presence updates via SignalR. Updated OnlinePingingController to use new services and return online status and last seen. Extended UserDto with IsOnline property. Updated dependency injection and privacy settings enum. Removed obsolete IUserPresenceService.
2025-07-23 21:07:29 +07:00
Artemy cbff5857e7 Update ChatLoadControllerTests.cs 2025-07-23 15:11:33 +07:00
Artemy b24649e53a Refactor message loading API and add message query support
Reworked message loading endpoints and services to support flexible message querying with 'before' and 'after' parameters via a new MessageQuery contract. Updated controller actions, service interfaces, and implementations to use the new query model, and improved error handling. Added integration tests for ChatLoadController and introduced IUserPresenceService interface. Minor fixes and help text improvements in console client commands.
2025-07-23 13:06:34 +07:00
Artemy 1fc13000b1 RefreshControllerTests 2025-07-21 18:05:30 +07:00
Artemy 10b4e5207f bug fix 2025-07-21 17:20:35 +07:00
Artemy 93004a26b3 Unauthorized changet to Forbid 2025-07-21 17:16:51 +07:00
Artemy 4054e4046a New Settings entity 2025-07-21 17:06:01 +07:00
Artemy c434ca447c Media Controller Tests and other 2025-07-21 16:18:04 +07:00
Artemy c0d02e0fa1 Add access control for media downloads
Introduced IAccesserToDownloadMedia and its implementation to enforce access checks when downloading media files. Updated MediaController to use the new accesser service and improved error handling and validation in upload/download actions. Refactored and moved MediaService to the Medias namespace, registered new services in DI, and added comprehensive tests for access logic. Also fixed GroupMembershipConfiguration to make InvitationId optional and performed minor test and namespace cleanups.
2025-07-21 14:51:57 +07:00
Artemy 58e7716ded MessagesLoaderTests 2025-07-21 13:42:41 +07:00
Artemy 50d53d1ea4 Create MediaControllerTests.cs 2025-07-19 23:55:49 +07:00
Artemy 272809d1d8 AppTests 2025-07-19 23:18:08 +07:00
Artemy f524a9f0b7 Refactor console client to new Govor.ConsoleClient project
Removed Govor.Console implementation and introduced a new Govor.ConsoleClient project with a modular command-based architecture. Added dependency injection, command dispatcher, middleware pipeline, logging, and interactive command support. Updated solution and project files to reflect the new structure.
2025-07-19 19:08:21 +07:00
Artemy ff873ae179 Implement refresh token flow and refactor session handling
Added refresh token endpoint and controller, introduced IUserSessionRefresher and UserSessionRefresher for token renewal, and updated session handling to return both access and refresh tokens. Refactored AuthController, tests, and related interfaces to support new token flow. Fixed JwtAccessOption property typo, updated configuration, and extended UserSessionsRepository to support lookup by refresh token.
2025-07-19 17:51:06 +07:00
Artemy ab643c16a4 Implement user session management and JWT refresh tokens
Added user session models, interfaces, repository, and service for managing user sessions and refresh tokens. Refactored authentication flow to return user objects and open sessions with device info, supporting refresh token generation and validation. Updated JWT configuration to separate access and refresh options, and refactored related tests and API contracts. Improved media upload handling and error logging. Migrated dependency references and DI registrations accordingly.
2025-07-18 20:16:36 +07:00
Artemy 6063aafd9e Refactor friend request and media services, remove console commands
Refactored the friend request command service and SignalR hub to return and broadcast FriendshipDto objects, improving real-time updates. Enhanced media upload and download logic to support file storage and retrieval, including database integration. Removed all command classes and related infrastructure from the Govor.Console project, streamlining the console client. Updated dependency injection and interfaces to reflect these changes.
2025-07-13 19:03:01 +07:00
Artemy 97b2ea14b2 Test for friends controllers 2025-07-12 19:51:15 +07:00