[package]
edition = "2021"
name = "secure_identity"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication helpers for JWT, OIDC, MFA, API keys, sessions, and step-up policy."
documentation = "https://docs.rs/secure_identity"
readme = "README.md"
keywords = [
"security",
"identity",
"jwt",
"oidc",
"mfa",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kerberosmansour/SunLitSecurityLibraries"
[features]
biometric = []
default = []
dev = []
oidc = [
"dep:openidconnect",
"dep:reqwest",
]
session-redis = ["dep:redis"]
[lib]
name = "secure_identity"
path = "src/lib.rs"
[[example]]
name = "production_boot"
path = "examples/production_boot.rs"
[[test]]
name = "biometric_tests"
path = "tests/biometric_tests.rs"
[[test]]
name = "cve_regression"
path = "tests/cve_regression.rs"
[[test]]
name = "e2e_sunlit_imp_m14"
path = "tests/e2e_sunlit_imp_m14.rs"
[[test]]
name = "e2e_sunlit_m5"
path = "tests/e2e_sunlit_m5.rs"
[[test]]
name = "e2e_sunlit_ndt_m3"
path = "tests/e2e_sunlit_ndt_m3.rs"
[[test]]
name = "e2e_sunlit_owasp_m24"
path = "tests/e2e_sunlit_owasp_m24.rs"
[[test]]
name = "prop_session"
path = "tests/prop_session.rs"
[[test]]
name = "sg_gate_a_boot_assert"
path = "tests/sg_gate_a_boot_assert.rs"
[[test]]
name = "step_up_tests"
path = "tests/step_up_tests.rs"
[[test]]
name = "sunlit_identity_authenticator"
path = "tests/sunlit_identity_authenticator.rs"
[[test]]
name = "sunlit_identity_dev"
path = "tests/sunlit_identity_dev.rs"
[[test]]
name = "sunlit_identity_session"
path = "tests/sunlit_identity_session.rs"
[[test]]
name = "sunlit_identity_token"
path = "tests/sunlit_identity_token.rs"
[[test]]
name = "sunlit_imp_api_key"
path = "tests/sunlit_imp_api_key.rs"
[[test]]
name = "sunlit_imp_asymmetric_jwt"
path = "tests/sunlit_imp_asymmetric_jwt.rs"
[[test]]
name = "sunlit_imp_jwks"
path = "tests/sunlit_imp_jwks.rs"
[[test]]
name = "sunlit_owasp_oidc"
path = "tests/sunlit_owasp_oidc.rs"
[[test]]
name = "sunlit_owasp_sessions"
path = "tests/sunlit_owasp_sessions.rs"
[[test]]
name = "sunlit_owasp_totp"
path = "tests/sunlit_owasp_totp.rs"
[[test]]
name = "timing_token_compare"
path = "tests/timing_token_compare.rs"
[dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]
[dependencies.openidconnect]
version = "4"
optional = true
[dependencies.redis]
version = "1"
features = [
"aio",
"tokio-comp",
]
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
]
optional = true
default-features = false
[dependencies.ring]
version = "0.17"
[dependencies.secure_device_trust]
version = "0.1.2"
package = "secure_device_trust"
[dependencies.secure_errors]
version = "0.1.2"
package = "secure_errors"
[dependencies.secure_network]
version = "0.1.2"
package = "secure_network"
[dependencies.security_core]
version = "0.1.2"
package = "security_core"
[dependencies.security_events]
version = "0.1.2"
package = "security_events"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.subtle]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"net",
"io-util",
]
[dependencies.totp-rs]
version = "5"
features = ["otpauth"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.base64]
version = "0.22"
[dev-dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.ring]
version = "0.17"
[dev-dependencies.security_core]
version = "0.1.2"
package = "security_core"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.untrusted]
version = "0.9"
[dev-dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]