POST /v1/credentials/oauth/{provider}/connect returns the provider's
authorize URL with PKCE S256 and a signed, expiring state (no server
session); the callback exchanges the code and seals the access token
(expiry in meta) and the refresh token as write-only credentials.
Credential resolution renews an access token that is about to expire.
Providers opt in with an oauth block; apps come from
SWITCHYARD_OAUTH_CLIENTS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "switchyard-server"
|
|
description = "Switchyard HTTP API, call pipeline, MCP endpoint, OAuth 2.1 routes and /admin console."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "switchyard-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
switchyard-core.workspace = true
|
|
switchyard-catalog.workspace = true
|
|
switchyard-adapters.workspace = true
|
|
switchyard-egress.workspace = true
|
|
switchyard-vault.workspace = true
|
|
switchyard-meter.workspace = true
|
|
switchyard-cache.workspace = true
|
|
switchyard-auth.workspace = true
|
|
switchyard-store.workspace = true
|
|
switchyard-mcp.workspace = true
|
|
async-trait.workspace = true
|
|
axum.workspace = true
|
|
tower.workspace = true
|
|
tokio.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
chrono.workspace = true
|
|
secrecy.workspace = true
|
|
url.workspace = true
|
|
base64.workspace = true
|
|
sha2.workspace = true
|
|
anyhow.workspace = true
|
|
sqlx.workspace = true
|
|
futures.workspace = true
|
|
|
|
[dev-dependencies]
|
|
switchyard-testkit.workspace = true
|
|
ulid.workspace = true
|
|
sha2.workspace = true
|