Compare commits

..

1 commit

Author SHA1 Message Date
c43ca438e6
feat: replace axum-auth with tower_http
Some checks failed
/ build (push) Failing after 4s
/ check (push) Has been skipped
Slightly more involde in the auth code, but it makes the rest of the
application more straight forward.

Fixes #10
2024-11-23 20:38:15 +01:00
2 changed files with 21 additions and 1 deletions

21
Cargo.lock generated
View file

@ -120,6 +120,18 @@ dependencies = [
"tracing", "tracing",
] ]
[[package]]
name = "axum-auth"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8169113a185f54f68614fcfc3581df585d30bf8542bcb99496990e1025e4120a"
dependencies = [
"async-trait",
"axum-core",
"base64 0.21.7",
"http",
]
[[package]] [[package]]
name = "axum-client-ip" name = "axum-client-ip"
version = "0.6.1" version = "0.6.1"
@ -176,6 +188,12 @@ dependencies = [
"backtrace", "backtrace",
] ]
[[package]]
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]] [[package]]
name = "base64" name = "base64"
version = "0.22.1" version = "0.22.1"
@ -1162,8 +1180,9 @@ name = "webnsupdate"
version = "0.3.2-dev" version = "0.3.2-dev"
dependencies = [ dependencies = [
"axum", "axum",
"axum-auth",
"axum-client-ip", "axum-client-ip",
"base64", "base64 0.22.1",
"clap", "clap",
"clap-verbosity-flag", "clap-verbosity-flag",
"http", "http",

View file

@ -102,3 +102,4 @@ where
Err(res) Err(res)
} }
} }