[package]
edition = "2024"
name = "authentication-verifier"
version = "0.9.0"
authors = ["Joel Parker Henderson <joel@joelparkerhenderson.com>"]
build = false
include = [
"src/**/*",
"LICENSE.md",
"README.md",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offline PASETO v4.public token verification for the Main X Index federation: fetch the authentication-service Ed25519 public keys once, then verify peer-service bearer tokens locally — no shared secret, no per-request introspection hop."
readme = "README.md"
keywords = [
"paseto",
"ed25519",
"authentication",
"verification",
"token",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT OR Apache-2.0 OR GPL-2.0 OR GPL-3.0 OR BSD-3-Clause"
repository = "https://github.com/sixarm/authentication-verifier-rust-crate"
[features]
default = []
fetch = ["dep:reqwest"]
[lib]
name = "authentication_verifier"
path = "src/lib.rs"
[dependencies.base64]
version = "0.22"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
]
optional = true
default-features = false
[dependencies.rusty_paseto]
version = "0.10.0"
features = [
"v4_public",
"serde_json",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dev-dependencies.ed25519-dalek]
version = "2.2.0"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]