memos/server/router/api/v1
Johnny 09afa579e4 chore: implement session sliding expiration and JWT authentication
- Added UpdateSessionLastAccessed method to update session access time.
- Enhanced Authenticate method to support both session cookie and JWT token authentication.
- Introduced AuthResult struct to encapsulate authentication results.
- Added SetUserInContext function to simplify context management for authenticated users.

refactor(auth): streamline gRPC and HTTP authentication

- Removed gRPC authentication interceptor and replaced it with a unified approach using GatewayAuthMiddleware for HTTP requests.
- Updated Connect interceptors to utilize the new authentication logic.
- Consolidated public and admin-only method checks into service layer for better maintainability.

chore(api): clean up unused code and improve documentation

- Removed deprecated logger interceptor and unused gRPC server code.
- Updated ACL configuration documentation for clarity on public and admin-only methods.
- Enhanced metadata handling in Connect RPC to ensure consistent header access.

fix(server): simplify server startup and shutdown process

- Eliminated cmux dependency for handling HTTP and gRPC traffic.
- Streamlined server initialization and shutdown logic for better performance and readability.
2025-12-15 10:04:11 +08:00
..
test refactor: migrate to connect-rpc (#5338) 2025-12-11 19:49:07 +08:00
acl_config.go chore: implement session sliding expiration and JWT authentication 2025-12-15 10:04:11 +08:00
acl_config_test.go chore: implement session sliding expiration and JWT authentication 2025-12-15 10:04:11 +08:00
activity_service.go chore: fix linter 2025-10-31 08:36:12 +08:00
attachment_service.go chore: fix some typos in comments (#5332) 2025-12-11 07:50:16 +08:00
auth_service.go fix(backend): implement protocol-agnostic header setting for dual gRPC/Connect-RPC support 2025-12-12 07:46:28 +08:00
auth_service_client_info_test.go chore: fix linter 2025-08-31 20:22:32 +08:00
common.go refactor: remove unused constants 2025-10-16 20:40:46 +08:00
connect_handler.go refactor: migrate to connect-rpc (#5338) 2025-12-11 19:49:07 +08:00
connect_interceptors.go chore: implement session sliding expiration and JWT authentication 2025-12-15 10:04:11 +08:00
connect_services.go fix(backend): correct generic type parameter in withHeaderCarrier helper 2025-12-12 08:06:13 +08:00
header_carrier.go fix(backend): correct generic type parameter in withHeaderCarrier helper 2025-12-12 08:06:13 +08:00
health_service.go refactor(store): remove deprecated migration_history table and backward compatibility code 2025-12-01 22:54:30 +08:00
idp_service.go fix(security): add missing authorization checks to various services (#5217) 2025-11-06 19:42:44 +08:00
instance_service.go refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00
memo_attachment_service.go fix(security): implement security review recommendations (#5228) 2025-11-06 23:32:27 +08:00
memo_relation_service.go fix(security): implement security review recommendations (#5228) 2025-11-06 23:32:27 +08:00
memo_service.go fix(api): implement custom memo ID support in CreateMemo (#5234) 2025-11-08 09:43:10 +08:00
memo_service_converter.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
memo_service_filter.go refactor: deprecate old filter 2025-07-22 21:25:57 +08:00
reaction_service.go fix(security): implement security review recommendations (#5228) 2025-11-06 23:32:27 +08:00
resource_name.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
shortcut_service.go refactor: remove unused constants 2025-10-16 20:40:46 +08:00
user_service.go refactor: migrate to connect-rpc (#5338) 2025-12-11 19:49:07 +08:00
user_service_stats.go fix: implement tag suggestions functionality 2025-11-08 09:15:38 +08:00
v1.go chore: implement session sliding expiration and JWT authentication 2025-12-15 10:04:11 +08:00