actix-jwt 0.1.0

Full-featured JWT authentication middleware for actix-web: login, logout, refresh, token rotation, cookie management, RSA/HMAC, RBAC authorizer, pluggable token store
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.93"
name = "actix-jwt"
version = "0.1.0"
authors = ["Dimitriy Lopanov  <sexykdi@gmail.com>"]
build = false
exclude = [
    "testdata/",
    "benches/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Full-featured JWT authentication middleware for actix-web: login, logout, refresh, token rotation, cookie management, RSA/HMAC, RBAC authorizer, pluggable token store"
homepage = "https://github.com/LdDl/actix-jwt"
documentation = "https://docs.rs/actix-jwt"
readme = "README.md"
keywords = [
    "actix-web",
    "jwt",
    "authentication",
    "middleware",
    "authorization",
]
categories = [
    "web-programming",
    "authentication",
]
license = "MIT"
repository = "https://github.com/LdDl/actix-jwt"

[features]
default = []
redis-store = ["redis"]

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

[[example]]
name = "authorization"
path = "examples/authorization.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "oauth_sso"
path = "examples/oauth_sso.rs"

[[example]]
name = "redis_simple"
path = "examples/redis_simple.rs"

[[example]]
name = "redis_store"
path = "examples/redis_store.rs"

[[example]]
name = "redis_tls"
path = "examples/redis_tls.rs"

[[example]]
name = "token_generator"
path = "examples/token_generator.rs"

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

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

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

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

[dependencies.actix-rt]
version = "2.11.0"

[dependencies.actix-service]
version = "2.0.3"

[dependencies.actix-web]
version = "4.13.0"

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

[dependencies.base64]
version = "0.21.7"

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

[dependencies.futures-util]
version = "0.3.32"

[dependencies.jsonwebtoken]
version = "9.3.1"

[dependencies.pem]
version = "3.0.6"

[dependencies.pkcs8]
version = "0.10.2"
features = [
    "encryption",
    "pem",
]

[dependencies.rand]
version = "0.8.5"

[dependencies.redis]
version = "0.27.6"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.rsa]
version = "0.9.10"
features = ["pem"]

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.tokio]
version = "1.50.0"
features = [
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.actix-http]
version = "3.12.0"

[dev-dependencies.actix-rt]
version = "2.11.0"

[dev-dependencies.actix-test]
version = "0.1.5"

[dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]

[dev-dependencies.reqwest]
version = "0.12.28"
features = [
    "cookies",
    "json",
]

[dev-dependencies.testcontainers]
version = "0.23.3"

[dev-dependencies.testcontainers-modules]
version = "0.11.6"
features = ["redis"]

[dev-dependencies.tokio]
version = "1.50.0"
features = ["full"]