caelum0x 5bd734a55f feat(toolgate): Postgres store, Mint/Rago metering, caps and OAuth 2.1 auth
- switchyard-store: Store trait with in-memory and Postgres (sqlx)
  implementations and one conformance suite; append-only hash-chained
  calls table (trigger refuses UPDATE/DELETE) written atomically with its
  outbox events and idempotency entry.
- switchyard-meter: Mint hold/capture/release/balance/checkout client
  with AITP receipt decoding, Rago tool_call events via a durable outbox
  with backoff, per-project/key/tool/send caps counting in-flight holds.
- switchyard-auth: Relay sk-t0 keys verified against Relay's own key
  table (one key for both rails), EdDSA access tokens bound to a
  resource, OAuth 2.1 AS logic: PKCE S256, DCR, client ID metadata
  documents, rotating refresh tokens with family revocation on reuse,
  device authorization grant, Scribase-backed identity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:10:35 +03:00

30 lines
809 B
TOML

[package]
name = "switchyard-auth"
description = "Switchyard auth: shared Relay sk-t0 keys, scopes, EdDSA access tokens, and the OAuth 2.1 authorization server (PKCE, DCR, CIMD, refresh rotation, device flow)."
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
switchyard-core.workspace = true
switchyard-store.workspace = true
async-trait.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
chrono.workspace = true
sqlx.workspace = true
ed25519-dalek.workspace = true
rand.workspace = true
base64.workspace = true
sha2.workspace = true
hex.workspace = true
secrecy.workspace = true
url.workspace = true
subtle.workspace = true
reqwest.workspace = true
[dev-dependencies]
tokio.workspace = true
async-trait.workspace = true