 d85898cae7
			
		
	
	d85898cae7
	
	
	
		
			
			Major architectural change to simplify authentication by authenticating directly against CalDAV servers instead of maintaining a local user database. Backend changes: - Remove SQLite database dependencies and user storage - Refactor AuthService to authenticate directly against CalDAV servers - Update JWT tokens to store CalDAV server info instead of user IDs - Implement proper CalDAV calendar discovery with XML parsing - Fix URL construction for CalDAV REPORT requests - Add comprehensive debug logging for authentication flow Frontend changes: - Add server URL input field to login form - Remove registration functionality entirely - Update calendar service to pass CalDAV passwords via headers - Store CalDAV credentials in localStorage for API calls Key improvements: - Simplified architecture eliminates database complexity - Direct CalDAV authentication ensures credentials always work - Proper calendar discovery automatically finds user calendars - Robust error handling and debug logging for troubleshooting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			850 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			850 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [package]
 | |
| name = "calendar-backend"
 | |
| version = "0.1.0"
 | |
| edition = "2021"
 | |
| 
 | |
| [[bin]]
 | |
| name = "backend"
 | |
| path = "src/main.rs"
 | |
| 
 | |
| [dependencies]
 | |
| # Backend authentication dependencies
 | |
| jsonwebtoken = "9.0"
 | |
| tokio = { version = "1.0", features = ["full"] }
 | |
| axum = { version = "0.7", features = ["json"] }
 | |
| tower = "0.4"
 | |
| tower-http = { version = "0.5", features = ["cors"] }
 | |
| hyper = { version = "1.0", features = ["full"] }
 | |
| 
 | |
| # Shared dependencies
 | |
| serde = { version = "1.0", features = ["derive"] }
 | |
| serde_json = "1.0"
 | |
| chrono = { version = "0.4", features = ["serde"] }
 | |
| uuid = { version = "1.0", features = ["v4", "serde"] }
 | |
| anyhow = "1.0"
 | |
| 
 | |
| # CalDAV dependencies
 | |
| reqwest = { version = "0.11", features = ["json"] }
 | |
| ical = "0.7"
 | |
| regex = "1.0"
 | |
| dotenvy = "0.15"
 | |
| base64 = "0.21"
 | |
| thiserror = "1.0"
 | |
| 
 | |
| [dev-dependencies]
 | |
| tokio = { version = "1.0", features = ["macros", "rt"] } |