sz-orm-auth 1.1.0

SZ-ORM Authentication & Authorization Extension
Documentation
[package]

name = "sz-orm-auth"

version.workspace = true

edition.workspace = true

authors.workspace = true

license.workspace = true

repository.workspace = true

homepage.workspace = true

keywords.workspace = true

categories.workspace = true

description = "SZ-ORM Authentication & Authorization Extension"



[dependencies]

async-trait = "0.1"

tokio = { version = "1.40", features = ["full"] }

thiserror = "2.0"

serde = { version = "1.0", features = ["derive"] }

serde_json = "1.0"

# RustCrypto 加密原语:替代手写 SHA-256 / HMAC-SHA256

sha2 = "0.10"

# SHA-1 用于 TOTP/HOTP (RFC 4226/6238) 的 HMAC-SHA1

sha1 = "0.10"

hmac = "0.12"

# base64 URL-safe (no padding) 编解码,替代手写实现

base64 = "0.22"

# v0.2.2 修复 H-3:常量时间比较,防止 JWT 签名校验的时序攻击

subtle = "2.5"



[dev-dependencies]

tokio-test = "0.4"



[lints]

workspace = true