Commit Graph

17 Commits

Author SHA1 Message Date
dbf68986da feature/app-selector 2026-05-26 16:59:32 -06:00
0ed350ca11 fix(auth): enhance logout and login flow with Keycloak integration and cookie management 2026-05-14 12:07:10 -05:00
35c47e32df fix: update secure cookie handling to use origin-based context for improved security 2026-05-12 17:32:03 -05:00
1dbc75107f feat: enhance user avatar handling and synchronization with Workspace
- Updated sidebar component to merge user data from Keycloak and Workspace, including avatar URLs.
- Refactored nav-user component to utilize new avatar resolution logic and display user information more effectively.
- Introduced a new utility function to resolve user avatar URLs, prioritizing Workspace avatars.
- Implemented backend changes to support synchronization of user profile data, including avatar URLs from Workspace.
- Added database migration to include new fields for Workspace profile synchronization in user_tenants.
- Created a new client for fetching user profiles from Workspace.
- Updated dashboard components to reflect changes in user data structure and avatar handling.
- Removed avatar upload functionality from the profile update process, relying on Workspace for avatar management.
- Added tests for avatar resolution logic to ensure correct prioritization of avatar sources.
2026-05-08 17:03:29 -05:00
5dd65df3e8 feat: add first_name and last_name fields to UserTenant model and sync with Keycloak
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 12:09:04 -05:00
a5b378ccff refactor: centralize access token handling in cookies and improve related functions
- Introduced utility functions for managing access tokens in cookies, including setting, getting, and clearing tokens.
- Updated various components and server routes to utilize the new access token functions for better consistency and maintainability.
- Removed redundant cookie handling code across the application, streamlining the authentication process.
2026-05-01 21:30:52 -05:00
5ac757dbc1 chore: snapshot before development sync 2026-04-24 11:18:06 -05:00
b348be5ff3 feat(auth): implement session management and silent refresh for Keycloak
- Added session manager to handle token refresh and user activity tracking.
- Introduced session timeout warning dialog for user inactivity.
- Updated authentication token handling in cookies with security policies.
- Created server-side endpoint for silent refresh of access tokens using HttpOnly cookies.
- Added silent check SSO HTML page for Keycloak integration.
2026-03-05 08:13:19 -06:00
hreyes
4cc613d1df checkpoint/backup-fail-server 2026-02-05 12:35:03 -06:00
68a7c116f3 Merge branch 'feature/reportes_facturas' into development 2026-01-21 12:12:23 -06:00
0a02a3e912 Se mejoro el disenio de partes, se genero la informacion mas precisa en los reportes y se carga el logo en las instanacias de las empresas 2026-01-15 13:20:34 -06:00
86e1f7e8f6 feat(security): implement permission checks in tenant CRUD routes and enhance API error handling 2026-01-14 17:34:02 -06:00
c00107d921 feat: Implement user profile management with avatar upload and additional fields
- Added avatar_url, phone, bio, and preferences fields to UserTenant model.
- Updated UserService to handle user profile updates and retrieval.
- Created endpoints for getting and updating the current user's profile.
- Implemented avatar upload functionality with validation in routes.
- Enhanced frontend to manage user profile, including avatar preview and form handling.
- Added server-side logic for loading and updating user profile data.
- Updated .gitignore to include uploads directory.
2026-01-13 12:37:11 -06:00
AlexeerCT
5dce19ebdf feat: Enhance regimen filtering logic and add timeout to authenticatedFetch 2026-01-02 15:46:25 -06:00
AlexeerCT
97b3ea52bc feat: Update environment variables and Docker configurations for production setup 2025-12-31 10:37:23 -06:00
AlexeerCT
8d0a895c8d Refactor invoice edit flow: enhance error handling, load reference data, and improve token management 2025-12-29 12:53:06 -06:00
a5c1bab201 Refactor authentication handling and API calls in dashboard routes
- Centralized API URL configuration and token management in $lib/server/api.ts.
- Replaced direct token access with a centralized method for retrieving tokens.
- Updated all dashboard reference data routes to use authenticatedFetch for API calls, improving token refresh handling.
- Simplified login route by utilizing centralized token management functions.
- Added a new layout file for the dashboard to pass user and company data to the client.
2025-11-12 09:46:59 -06:00