rskit-auth 0.2.0-alpha.1

JWT, OIDC, password hashing, and request-context auth helpers
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.91"
name = "rskit-auth"
version = "0.2.0-alpha.1"
authors = ["kbukum contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JWT, OIDC, password hashing, and request-context auth helpers"
homepage = "https://github.com/kbukum/rskit"
documentation = "https://docs.rs/rskit-auth"
readme = "README.md"
keywords = [
    "auth",
    "jwt",
    "oidc",
    "password",
]
categories = ["authentication"]
license = "MIT"
repository = "https://github.com/kbukum/rskit"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
jwt = ["dep:jsonwebtoken"]
oidc = [
    "dep:jsonwebtoken",
    "dep:reqwest",
    "dep:rskit-httpclient",
]

[lib]
name = "rskit_auth"
path = "src/lib.rs"

[[test]]
name = "api_key_contract_behavior"
path = "tests/api_key_contract_behavior.rs"

[[test]]
name = "credentials_jwt_behavior"
path = "tests/credentials_jwt_behavior.rs"
required-features = ["jwt"]

[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["jwt"]

[[test]]
name = "security_audit"
path = "tests/security_audit.rs"
required-features = ["jwt"]

[dependencies.argon2]
version = "0.5"
features = [
    "password-hash",
    "rand",
    "std",
]

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.13"

[dependencies.http]
version = "1"

[dependencies.jsonwebtoken]
version = "10"
features = [
    "aws_lc_rs",
    "use_pem",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "http2",
    "query",
]
optional = true
default-features = false

[dependencies.rskit-errors]
version = "0.2.0-alpha.1"

[dependencies.rskit-httpclient]
version = "0.2.0-alpha.1"
optional = true

[dependencies.rskit-security]
version = "0.2.0-alpha.1"

[dependencies.rskit-util]
version = "0.2.0-alpha.1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tower]
version = "0.5"
features = ["full"]

[dependencies.zeroize]
version = "1"
features = ["derive"]

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.parking_lot]
version = "0.12"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "full",
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
dead_code = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_imports = "warn"
unused_variables = "warn"