An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(relay): OAuth server metadata endpoint (MM-75) #42

Summary#

  • Adds GET /.well-known/oauth-authorization-server returning RFC 8414 OAuth 2.0 Authorization Server Metadata — the discovery document Bluesky clients fetch before any OAuth interaction
  • Adds db/oauth.rs storage adapter (register_oauth_client, get_oauth_client) backed by the existing oauth_clients table from the Wave 1 schema
  • Adds Bruno request file (seq: 12)
  • Fixes two pre-existing clippy lints and applies cargo fmt across the relay crate

Dependency decision#

atproto-oauth-axum 0.14.3 was evaluated but skipped: requires axum = "0.8" (relay is on 0.7) and is an OAuth client crate, not server. Tracked as MM-154.

Test plan#

  • cargo test -p relay — 270 tests pass (9 new in oauth_server_metadata, 3 in db::oauth)
  • cargo clippy -p relay -- -D warnings — clean
  • curl http://localhost:8080/.well-known/oauth-authorization-server returns valid JSON
  • issuer matches configured public_url; no double-slash if trailing slash in config
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mhnyxj4zeg22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
malpercio.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments