pas-external 0.12.0

Ppoppo Accounts System (PAS) external SDK — OAuth2 PKCE, JWT verification port, Axum middleware, session liveness
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 = "pas-external"
version = "0.12.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ppoppo Accounts System (PAS) external SDK — OAuth2 PKCE, JWT verification port, Axum middleware, session liveness"
homepage = "https://accounts.ppoppo.com"
documentation = "https://docs.rs/pas-external"
readme = "README.md"
keywords = [
    "oauth2",
    "pkce",
    "jwt",
    "axum",
    "authentication",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hakchin/ppoppo"
resolver = "2"

[features]
axum = [
    "oauth",
    "session-liveness",
    "token",
    "well-known-fetch",
    "ppoppo-sdk-core/axum",
    "dep:axum",
    "dep:axum-extra",
    "dep:tower",
    "dep:tracing",
]
default = [
    "oauth",
    "token",
]
oauth = [
    "dep:reqwest",
    "dep:sha2",
    "dep:rand",
    "dep:base64",
    "dep:url",
    "dep:tokio",
]
session-liveness = [
    "oauth",
    "dep:aes-gcm",
    "dep:base64",
]
shared-cache = [
    "well-known-fetch",
    "dep:ppoppo-infra",
]
test-support = [
    "dep:wiremock",
    "well-known-fetch",
    "ppoppo-sdk-core/test-support",
]
token = [
    "dep:ppoppo-token",
    "ppoppo-sdk-core/token",
]
well-known-fetch = [
    "oauth",
    "token",
    "dep:tokio",
    "ppoppo-sdk-core/well-known-fetch",
]

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

[[test]]
name = "audit_sink_boundary"
path = "tests/audit_sink_boundary.rs"
required-features = ["test-support"]

[[test]]
name = "bearer_boundary"
path = "tests/bearer_boundary.rs"
required-features = [
    "test-support",
    "axum",
]

[[test]]
name = "bearer_verifier_boundary"
path = "tests/bearer_verifier_boundary.rs"
required-features = [
    "test-support",
    "well-known-fetch",
]

[[test]]
name = "epoch_shared_cache_boundary"
path = "tests/epoch_shared_cache_boundary.rs"
required-features = [
    "test-support",
    "shared-cache",
]

[[test]]
name = "id_token_verifier_boundary"
path = "tests/id_token_verifier_boundary.rs"
required-features = [
    "test-support",
    "well-known-fetch",
]

[[test]]
name = "liveness_boundary"
path = "tests/liveness_boundary.rs"
required-features = [
    "test-support",
    "session-liveness",
]

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

[[test]]
name = "session_liveness_lookup_boundary"
path = "tests/session_liveness_lookup_boundary.rs"
required-features = [
    "test-support",
    "well-known-fetch",
]

[dependencies.aes-gcm]
version = "0.10"
features = ["aes"]
optional = true

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.axum-extra]
version = "0.12"
features = ["cookie-private"]
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.derive_more]
version = "2"
features = [
    "display",
    "from_str",
    "from",
    "into",
]
default-features = false

[dependencies.ppoppo-clock]
version = "0.1.0"
features = ["native"]

[dependencies.ppoppo-infra]
version = "0.1.0"
optional = true

[dependencies.ppoppo-sdk-core]
version = "0.2.0"
default-features = false

[dependencies.ppoppo-token]
version = "0.3.0"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "serde",
    "serde-well-known",
    "parsing",
]

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

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

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

[dependencies.url]
version = "2"
features = ["serde"]
optional = true

[dependencies.wiremock]
version = "0.6"
optional = true

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.static_assertions]
version = "1"

[dev-dependencies.thiserror]
version = "2"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"