Commit Graph

10 Commits

Author SHA1 Message Date
yangdx
8742ec3625 Refactor ProtectedRoute component to properly handle navigation in React lifecycle 2025-03-20 12:41:02 +08:00
yangdx
32dcbec7b5 Update webui assets 2025-03-19 19:09:03 +08:00
yangdx
99814b57d9 Refactor navigation and authentication flow
- Move navigation setup to AppRouter
- Prevent protected route logic to handle login 401
2025-03-19 19:08:09 +08:00
yangdx
50a8b5fb6d Refactor navigation and authentication flow, prevent mounting login page multiple times
- Improved protected route handling
- Enhanced direct login access detection
- Centralized navigation logic
- Optimized state reset process
- Fixed logout navigation behavior
2025-03-19 12:45:08 +08:00
yangdx
43996656d3 Fix linting 2025-03-18 03:30:43 +08:00
yangdx
f8440c8f80 feat(auth): implement auto guest mode and enhance token system
- Add role-based token system with metadata support
- Implement automatic guest mode for unconfigured authentication
- Create new /auth-status endpoint for authentication status checking
- Modify frontend to auto-detect auth status and bypass login when appropriate
- Add guest mode indicator in site header for better UX

This change allows users to automatically access the system without manual
login when authentication is not configured, while maintaining secure
authentication when credentials are properly set up.
2025-03-18 02:56:02 +08:00
yangdx
2a18b04f7f Added authentication checks and token validation
- Added auth checks in health check logic
- Protected routes require authentication
- Validated token on app startup
- Added auth check in API interceptor
- Clear token on 401 unauthorized error
2025-03-18 01:46:12 +08:00
choizhang
10c23aabfd Change to hash routing, webuiInitialize controls project prefix 2025-03-14 17:00:36 +08:00
choizhang
7bf2d51bd0 Added language and theme switching function to login page and homepage 2025-03-12 00:42:12 +08:00
choizhang
6b22e8065b Added loginPage 2025-03-11 14:48:19 +08:00