Overview
The authentication system provides secure access control with features including login, registration with email whitelisting, session management, and automatic idle timeout.Login
Basic Authentication
The login page accepts username and password credentials:~/workspace/source/src/pages/Login.tsx:34-68
Password Visibility Toggle
~/workspace/source/src/pages/Login.tsx:105-128
Registration
Email Whitelist Validation
Registration requires email to be on the authorized whitelist:~/workspace/source/src/pages/Register.tsx:47-94
Password Strength Validation
Real-time password strength calculation:~/workspace/source/src/pages/Register.tsx:37-45
Password Strength Indicator
~/workspace/source/src/pages/Register.tsx:216-232
Registration Validation Rules
~/workspace/source/src/pages/Register.tsx:79-109
Protected Routes
Route Protection
Prevent unauthorized access to protected pages:~/workspace/source/src/components/auth/ProtectedRoute.tsx:10-27
Redirect After Login
Redirect users to their intended destination after login:~/workspace/source/src/pages/Login.tsx:32-56
Session Management
Idle Timeout
Automatic logout after 15 minutes of inactivity:~/workspace/source/src/components/auth/IdleHandler.tsx:7-43
Security Features
From README Documentation
~/workspace/source/README.md:513-517
User Roles
Admin Role Assignment
~/workspace/source/src/pages/Register.tsx:114-122
Best Practices
- Strong Passwords - Enforce minimum 8 characters with mixed case, numbers, and symbols
- Email Whitelisting - Restrict registration to authorized users only
- Session Timeout - Implement automatic logout for security
- Password Visibility - Allow users to toggle password visibility for better UX
- Error Handling - Provide clear, user-friendly error messages
- Loading States - Show loading indicators during authentication operations
- Redirect Handling - Preserve intended destination across login flow