Skip to content

Serve atproto-did even when username doesn't match PDS hostname #145

Description

@simnaut

My handle is domain.com, did is did:web:domain.com and my pds hostname is pds.domain.com.

For my did:web to resolve, I put in a Worker Route that routes domain.com/.well-known/ to pds.domain.com. I can successfully get to /.well-known/did.json this way. However, my handle isn't verifying because this endpoint isn't active

// Handle verification for AT Protocol
// Only served if handle matches PDS hostname
app.get("/.well-known/atproto-did", (c) => {
if (c.env.HANDLE !== c.env.PDS_HOSTNAME) {
return c.notFound();
}

The comment sounds like it is intentional, but I am hoping this check could be removed and then my handle can resolve without needing the DNS TXT record.

Thank you for this project! 💯

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions