[package]
edition = "2021"
rust-version = "1.92"
name = "fraiseql-auth"
version = "2.2.0"
authors = ["FraiseQL Team <team@fraiseql.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication, authorization, and session management for FraiseQL"
homepage = "https://fraiseql.dev"
documentation = "https://docs.fraiseql.dev"
readme = "README.md"
keywords = [
"graphql",
"database",
"compiler",
"sql",
]
categories = [
"database",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fraiseql/fraiseql"
[features]
default = []
redis-pkce = ["redis"]
redis-rate-limiting = ["redis"]
[lib]
name = "fraiseql_auth"
path = "src/lib.rs"
[[test]]
name = "concurrency_rate_limiter"
path = "tests/concurrency_rate_limiter.rs"
[[test]]
name = "error_oidc_integration"
path = "tests/error_oidc_integration.rs"
[[test]]
name = "error_rate_limiter_memory"
path = "tests/error_rate_limiter_memory.rs"
[[test]]
name = "pkce_csrf_regression_test"
path = "tests/pkce_csrf_regression_test.rs"
[[test]]
name = "pkce_roundtrip_test"
path = "tests/pkce_roundtrip_test.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "rate_limiter_time_tests"
path = "tests/rate_limiter_time_tests.rs"
[[test]]
name = "redis_failover_test"
path = "tests/redis_failover_test.rs"
[[bench]]
name = "auth_bench"
path = "benches/auth_bench.rs"
harness = false
[dependencies.aes-gcm]
version = "0.10"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
features = ["macros"]
[dependencies.base64]
version = "0.22"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.dashmap]
version = "6.1"
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
features = ["std"]
[dependencies.http]
version = "1"
[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]
[dependencies.rand]
version = "0.8"
[dependencies.redis]
version = "1"
features = [
"aio",
"tokio-comp",
"connection-manager",
]
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8"
features = [
"postgres",
"runtime-tokio",
"uuid",
"chrono",
]
[dependencies.subtle]
version = "2.5"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.0"
features = [
"rt-multi-thread",
"macros",
"net",
"time",
"io-util",
"io-std",
"sync",
"signal",
"fs",
]
[dependencies.tower]
version = "0.5"
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dependencies.urlencoding]
version = "2.1"
[dependencies.uuid]
version = "1.21"
features = [
"v4",
"serde",
]
[dependencies.zeroize]
version = "1.8"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
cargo_common_metadata = "allow"
if_not_else = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_enumerate_index = "allow"
unused_self = "allow"
unwrap_used = "deny"
use_self = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
dead_code = "deny"
missing_docs = "deny"
unsafe_code = "forbid"
unused_imports = "warn"
unused_variables = "warn"