id_effect_auth 0.13.0

Authentication for id_effect services: password hashing, sessions, JWT, API-key and OIDC credentials
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.94"
name = "id_effect_auth"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication for id_effect services: password hashing, sessions, JWT, API-key and OIDC credentials"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Industrial/id_effect"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[package.metadata.id_effect]
tier = "platform"

[features]
accounts = [
    "pg",
    "axum",
]
axum = [
    "dep:axum",
    "dep:id_effect_axum",
    "id_effect_authz/axum",
    "dep:http",
    "dep:tower-layer",
    "dep:tower-service",
]
default = []
jwks = [
    "jwt",
    "dep:reqwest",
    "dep:tokio",
]
jwt = ["dep:jsonwebtoken"]
oidc = [
    "axum",
    "jwks",
    "dep:openidconnect",
    "dep:id_effect_platform",
]
pg = ["dep:id_effect_sql"]
totp = ["dep:totp-rs"]

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

[[example]]
name = "005_passwords_sessions"
path = "examples/005_passwords_sessions.rs"

[[example]]
name = "010_login"
path = "examples/010_login.rs"
required-features = [
    "axum",
    "jwt",
]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.argon2]
version = "0.6.0"
features = [
    "alloc",
    "getrandom",
    "password-hash",
]
default-features = false

[dependencies.axum]
version = "0.8.9"
optional = true
default-features = false

[dependencies.base64]
version = "0.22.1"

[dependencies.flume]
version = "0.12"

[dependencies.getrandom]
version = "0.4.2"

[dependencies.http]
version = "1"
optional = true

[dependencies.id_effect]
version = "0.13.0"

[dependencies.id_effect_authz]
version = "0.13.0"

[dependencies.id_effect_axum]
version = "0.13.0"
optional = true

[dependencies.id_effect_platform]
version = "0.13.0"
features = ["auth"]
optional = true

[dependencies.id_effect_sql]
version = "0.13.0"
features = ["pg"]
optional = true

[dependencies.jiff]
version = "0.2.23"

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

[dependencies.openidconnect]
version = "4.0.1"
optional = true
default-features = false

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10.9"

[dependencies.subtle]
version = "2.6.1"

[dependencies.tokio]
version = "1.50.0"
features = ["sync"]
optional = true
default-features = false

[dependencies.totp-rs]
version = "6.0.0"
features = [
    "std",
    "otpauth",
]
optional = true
default-features = false

[dependencies.tower-layer]
version = "0.3.3"
optional = true

[dependencies.tower-service]
version = "0.3.3"
optional = true

[dependencies.zeroize]
version = "1.9.1"

[dev-dependencies.aws-lc-rs]
version = "1.18"

[dev-dependencies.axum]
version = "0.8.9"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.testcontainers]
version = "0.28"
default-features = false

[dev-dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "io-util",
]

[dev-dependencies.tower]
version = "0.5.3"
features = ["util"]

[dev-dependencies.wiremock]
version = "0.6"

[lints.rust]
unsafe_code = "forbid"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]