Skip to main content

atproto_did

Function atproto_did 

Source
pub async fn atproto_did(__arg0: State<Arc<OAuthState>>) -> Response
Expand description

GET /.well-known/atproto-did — atproto handle→DID resolution (HTTP method).

Per the atproto Handle spec (https://atproto.com/specs/handle), the HTTPS well-known method returns the bare DID string as text/plain (no JSON or wrapper) so this deployment’s handle (its authority hostname) resolves to its canonical issuer-root did:web. Companion to /.well-known/did.json, which serves the full W3C DID document for the same subject.

Consumed by the frontend handle resolver (www-cyberdione-ai/src/api/atproto.ts:resolveHandleToDid). This is a CORS-simple GET (no custom request headers → no preflight), so it needs only cross-origin readability from the public CORS layer, not permissive headers.