[package]
edition = "2024"
rust-version = "1.94"
name = "lenso-module-auth"
version = "0.1.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "First-party auth anchor module for the Lenso backend framework."
homepage = "https://github.com/LioRael/lenso-auth-module"
readme = "README.md"
keywords = [
"backend",
"framework",
"auth",
]
categories = [
"web-programming",
"development-tools",
]
license = "MIT"
repository = "https://github.com/LioRael/lenso-auth-module"
resolver = "2"
[features]
default = []
redis = ["dep:redis"]
[lib]
name = "auth"
path = "src/lib.rs"
[[test]]
name = "admin_data"
path = "tests/admin_data.rs"
[[test]]
name = "anonymous_identity"
path = "tests/anonymous_identity.rs"
[[test]]
name = "session_policy"
path = "tests/session_policy.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.getrandom]
version = "0.4"
[dependencies.platform-core]
version = "0.1.5"
package = "lenso-platform-core"
[dependencies.platform-http]
version = "0.1.4"
package = "lenso-platform-http"
[dependencies.platform-module]
version = "0.1.5"
package = "lenso-platform-module"
[dependencies.redis]
version = "1.2"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.11"
[dependencies.sqlx]
version = "0.9"
features = [
"runtime-tokio",
"tls-rustls-ring-webpki",
"postgres",
"uuid",
"chrono",
"json",
]
default-features = false
[dependencies.tracing]
version = "0.1"
[dependencies.utoipa]
version = "5.5"
features = [
"axum_extras",
"chrono",
"uuid",
]
[dev-dependencies.platform-runtime]
version = "0.1.2"
package = "lenso-platform-runtime"
[dev-dependencies.platform-testing]
version = "0.1.1"
package = "lenso-platform-testing"
[dev-dependencies.tokio]
version = "1.52"
features = [
"macros",
"rt-multi-thread",
"time",
]
[lints.clippy]
all = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
pedantic = "warn"
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"