feat: setup github provider with generic trait, proper routes, session & jwt handling, errors & user agent

This commit is contained in:
Ryan Walters
2025-09-17 03:32:32 -05:00
parent 264478bdaa
commit f3db44c48b
12 changed files with 604 additions and 20 deletions

View File

@@ -15,13 +15,12 @@ publish.workspace = true
default-run = "pacman-server"
[dependencies]
axum = "0.8"
axum = { version = "0.8", features = ["macros"] }
tokio = { version = "1", features = ["full"] }
oauth2 = "5"
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
sqlx = { version = "0.8", features = [
"runtime-tokio-rustls",
"postgres",
@@ -29,9 +28,8 @@ sqlx = { version = "0.8", features = [
] }
figment = { version = "0.10", features = ["env"] }
dotenvy = "0.15"
# Validation
dashmap = "6.1"
axum-cookie = "0.2"
async-trait = "0.1"
jsonwebtoken = { version = "9.3", default-features = false }
# validator = { version = "0.16", features = ["derive"] }
# JWT for internal sessions
# jsonwebtoken = "8.3"