mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
- Add AuthenticationError enum for proper error handling in authentication domain - Add attemptAutoLogin(profile:) method to AuthenticationService that: - Checks for valid existing tokens first - Retrieves stored credentials from Keychain using profile ID - Attempts authentication with stored username/password - Throws AuthenticationError for graceful fallback to manual login - Update ServerProfilesViewModel.connectToProfile() to: - Remove early return that immediately showed login modal - Attempt auto-login first when authentication required - Only show login modal when auto-login fails (graceful fallback) - Maintain existing connection flow for no-auth servers - Enhance server setup UI to capture username during profile creation: - Add username field to ConnectionViewModel - Add username input to ServerConfigForm - Update profile creation to store actual username instead of hardcoded "admin" - Default to "admin" if username field is empty for backward compatibility - Update EnhancedConnectionView to pass username binding to form - Build verification: All changes compile successfully This implements a "Terminus-like experience" where users configure credentials once during server setup and enjoy automatic authentication thereafter, with graceful fallback to manual login when needed. |
||
|---|---|---|
| .. | ||
| Common | ||
| Connection | ||
| FileBrowser | ||
| Sessions | ||
| Settings | ||
| Terminal | ||
| Welcome | ||
| FileBrowserView.swift | ||
| FileEditorView.swift | ||
| QuickLookWrapper.swift | ||
| SystemLogsView.swift | ||