[package]
edition = "2021"
name = "oauth2-test-server"
version = "0.2.2"
authors = ["Ali Hashemi"]
build = false
exclude = [
".github/",
"Makefile.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, fully configurable, in-memory OAuth 2.0 + OpenID Connect authorization server for testing, zero-HTTP mode and DCR support for testing auth flow in MCP Servers and MCP Clients"
homepage = "https://github.com/rust-mcp-stack/oauth2-test-server"
documentation = "https://docs.rs/oauth2-test-server"
readme = "README.md"
keywords = [
"oauth2",
"openid-connect",
"oidc",
"testing",
"mock-server",
]
categories = [
"development-tools::testing",
"authentication",
"web-programming",
]
license = "MIT"
repository = "https://github.com/rust-mcp-stack/oauth2-test-server"
[package.metadata.wix]
upgrade-guid = "1B970F64-3D06-4E21-834D-431BD44279DD"
path-guid = "A74F7647-BB66-4039-A6F0-A3E4A61520AE"
license = false
eula = false
[features]
config = [
"dep:serde_yaml",
"dep:toml",
]
default = [
"testing",
"config",
]
testing = ["dep:reqwest"]
[lib]
name = "oauth2_test_server"
path = "src/lib.rs"
[[bin]]
name = "oauth2-test-server"
path = "src/main.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "crypto"
path = "tests/crypto.rs"
[[test]]
name = "tets_readme_examples"
path = "tests/tets_readme_examples.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
features = [
"json",
"query",
]
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.colored]
version = "3.0"
[dependencies.dotenvy]
version = "0.15"
[dependencies.envy]
version = "0.4"
[dependencies.futures]
version = "0.3"
[dependencies.http]
version = "1.3"
[dependencies.jsonwebtoken]
version = "10.1"
features = ["aws_lc_rs"]
[dependencies.once_cell]
version = "1.17"
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.12"
features = [
"stream",
"rustls-tls",
"json",
"cookies",
"multipart",
]
optional = true
[dependencies.rsa]
version = "0.9"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.0"
features = ["full"]
[dependencies.toml]
version = "0.8"
optional = true
[dependencies.tower-http]
version = "0.5"
features = [
"trace",
"cors",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.url]
version = "2.3"
[dependencies.uuid]
version = "1.0"
features = ["v4"]
[dev-dependencies]
[profile.dist]
lto = "thin"
inherits = "release"