-
Notifications
You must be signed in to change notification settings - Fork 14
Serve atproto-did even when username doesn't match PDS hostname #145
Copy link
Copy link
Open
Description
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
cirrus/packages/pds/src/index.ts
Lines 137 to 142 in 304788d
| // 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! 💯
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels