memos/server/router/api/v1
Steven a6c32908a0 refactor(auth): remove legacy session cookie authentication
- Remove SessionCookieName and SessionSlidingDuration constants
- Remove ExtractSessionCookieFromHeader() function
- Remove SessionIDContextKey and GetSessionID() function
- Remove sessionID parameter from SetUserInContext()
- Remove SessionID field from AuthResult struct
- Remove session cookie extraction from middleware
- Update documentation to reflect JWT + PAT only auth

Session cookies were never being set since migration to refresh token
authentication. This change removes ~50 lines of dead code and clarifies
that the system uses JWT access tokens, refresh tokens, and PATs only.
2025-12-19 00:09:08 +08:00
..
test refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
acl_config.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
acl_config_test.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
activity_service.go chore: fix linter 2025-10-31 08:36:12 +08:00
attachment_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
auth_service.go fix(auth): resolve token refresh and persistence issues 2025-12-18 20:56:54 +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 refactor(auth): remove legacy session cookie authentication 2025-12-19 00:09:08 +08:00
connect_services.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +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 refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
instance_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_attachment_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_relation_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +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 refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
resource_name.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
shortcut_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
user_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
user_service_stats.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
v1.go refactor(auth): remove legacy session cookie authentication 2025-12-19 00:09:08 +08:00