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: implement DELETE /v1/handles/:handle #60

Summary#

  • Adds DELETE /v1/handles/:handle endpoint authenticated via session Bearer token
  • Extends DnsProvider trait with delete_record; updates test doubles in create_handle accordingly
  • DNS deletion precedes DB deletion (mirrors the create ordering invariant — keeps orphan risk on the operator-fixable side)

Test plan#

  • cargo test -p relay delete_handle — 6 tests: happy path (no DNS), happy path (DNS ok), DNS failure row survives, 401 missing auth, 403 non-owner, 404 not found
  • Manual: DELETE /v1/handles/{{handle}} with valid session token → 204
  • Manual: same request with wrong session (different DID) → 403
  • Manual: request for non-existent handle → 404
  • Manual: request with no Authorization header → 401
Labels

None yet.

assignee

None yet.

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