
- Add state parameter generation and validation with crypto-secure random values - Implement used authorization code tracking to prevent replay attacks - Add automatic redirect after successful auth to prevent refresh issues - Enhance OAuth callback with comprehensive security checks - Fix route conflicts between home page and OAuth callback handling - Add rand dependency for secure state generation - Update models.rs to handle optional Spotify API fields - Improve error messages and logging for security violations
24 lines
579 B
TOML
24 lines
579 B
TOML
[package]
|
|
name = "spotify-tracker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
base64 = "0.22"
|
|
url = "2.5"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
thiserror = "1.0"
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
config = "0.14"
|
|
dirs = "5.0"
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
anyhow = "1.0"
|
|
toml = "0.8"
|
|
warp = "0.3"
|
|
tokio-stream = "0.1"
|
|
rand = "0.8" |