Skip to content

Commit 5884432

Browse files
committed
feat: implement API token management with creation, listing, and revocation features; update environment configuration and enhance error handling
1 parent 877f1b2 commit 5884432

42 files changed

Lines changed: 1426 additions & 767 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
DATABASE_URL=postgres://cle:cle_password@localhost:5422/cle_db
2+
API_TOKEN_SECRET=change-me-to-a-long-random-string-for-local-dev
23
RUST_LOG=info
34
SESSION_COOKIE_SECURE=false
45
CACHE_TTL_SECONDS=60

backend/.sqlx/query-3edb334af65f4c5d472bb430966954b7e3a4abf386573e7e1956745cd923ac93.json renamed to backend/.sqlx/query-0bd9de866430e447e3cf961dc93f6998a4ece57e903bd4f578c1ae94a8c2049a.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/.sqlx/query-4f45c9504e810f06aa1bce474ce4df44829621ac5457fc2a491a01dd2e155513.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/.sqlx/query-97cbddeb9eb3d15b4304fe14ba1e83e219f6c5df6f09c8507c69521de52c2ad5.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/.sqlx/query-aeea9fd4b78f0d56c49794739c3051cdc6c645ed053faa41b91c083893b03275.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/.sqlx/query-c5f9bea0f50f5284557a68e42637a1101e93baaf89875f57019981da67c11fcc.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/.sqlx/query-de765de0e734aea47af62ffdfebaecf08c5cabbd146e1bf2e696bc8cda9dd027.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/Cargo.lock

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ utoipa-axum = "0.2.0"
2424
utoipa-swagger-ui = { version = "9.0.2", features = ["axum", "vendored"] }
2525
tracing = "0.1.44"
2626
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "time"] }
27-
dotenv = "0.15.0"
2827
argon2 = { version = "0.5", features = ["std"] }
2928
password-hash = "0.5"
3029
rand_core = { version = "0.6", features = ["std", "getrandom"] }
@@ -33,5 +32,7 @@ cookie = "0.18"
3332
password_policy = "0.1"
3433
lettre = { version = "0.11.20", default-features = false, features = ["builder", "smtp-transport", "tokio1", "tokio1-rustls", "rustls-native-certs", "aws-lc-rs"] }
3534
base64 = "0.22"
35+
hmac = "0.12"
36+
sha2 = "0.10"
3637
icalendar = "0.17"
3738
chrono-tz = "0.10"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS api_tokens;

0 commit comments

Comments
 (0)