[package]
edition = "2024"
rust-version = "1.88"
name = "riley-auth-api"
version = "0.1.0"
authors = ["Riley Leff <rileyleff@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP API server for riley_auth — OAuth 2.0 / OIDC provider endpoints"
readme = "README.md"
keywords = [
"auth",
"oauth",
"jwt",
"identity",
]
categories = [
"web-programming",
"authentication",
]
license = "MIT"
repository = "https://github.com/rileyleff/riley_auth"
resolver = "2"
[features]
default = []
redis = ["dep:redis"]
[lib]
name = "riley_auth_api"
path = "src/lib.rs"
[[test]]
name = "admin"
path = "tests/admin.rs"
[[test]]
name = "auth"
path = "tests/auth.rs"
[[test]]
name = "metrics"
path = "tests/metrics.rs"
[[test]]
name = "oauth"
path = "tests/oauth.rs"
[[test]]
name = "oidc"
path = "tests/oidc.rs"
[[test]]
name = "oidc_conformance"
path = "tests/oidc_conformance.rs"
[[test]]
name = "redis_rate_limit"
path = "tests/redis_rate_limit.rs"
[[test]]
name = "webhooks"
path = "tests/webhooks.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.axum]
version = "0.8"
[dependencies.axum-extra]
version = "0.10"
features = ["cookie"]
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.cookie]
version = "0.18"
[dependencies.hex]
version = "0.4"
[dependencies.jsonwebtoken]
version = "9"
[dependencies.metrics]
version = "0.24"
[dependencies.metrics-exporter-prometheus]
version = "0.16"
default-features = false
[dependencies.percent-encoding]
version = "2"
[dependencies.rand]
version = "0.9"
[dependencies.redis]
version = "0.27"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
]
default-features = false
[dependencies.riley-auth-core]
version = "0.1.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio-rustls",
"postgres",
"chrono",
"uuid",
]
[dependencies.subtle]
version = "2"
[dependencies.tokio]
version = "1.43"
features = ["full"]
[dependencies.tower]
version = "0.5"
[dependencies.tower-http]
version = "0.6"
features = [
"cors",
"trace",
"set-header",
"limit",
]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dependencies.utoipa]
version = "5"
features = [
"axum_extras",
"uuid",
]
[dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
"serde",
]
[dev-dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"cookies",
]
default-features = false
[dev-dependencies.tempfile]
version = "3"