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: serve /.well-known/atproto-did for handle verification #36

Summary#

  • Implements GET /.well-known/atproto-did in crates/relay/
  • Resolves the DID from the Host header by looking up the handle in the handles table
  • Returns 200 text/plain with the DID, or 404 if the host is not a registered handle
  • Strips port from Host header (e.g. localhost:8080localhost) before lookup

Test plan#

  • registered_handle_returns_did_as_plain_text — known handle returns 200 with DID body
  • unregistered_host_returns_404 — unknown host returns 404
  • response_content_type_is_text_plain — Content-Type is text/plain
  • host_with_port_is_resolved_correctlyHost: alice.example.com:8080 resolves correctly

Closes MM-151

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mhw5rog5yg22
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