Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A mechanism for strict domain matching #12

Open
erynofwales opened this issue Mar 25, 2021 · 2 comments
Open

A mechanism for strict domain matching #12

erynofwales opened this issue Mar 25, 2021 · 2 comments

Comments

@erynofwales
Copy link

I think it would be useful to allow a service that wants to send domain-bound codes to be able to opt into a stricter matching mechanism. Common examples that come to mind are hosting services or blog services that have user login on their TLD-plus-one and serve user content from subdomains. For example, Example Hosting Service has a login form on example.com and serves userA's content from userA.example.com.

Under our current matching scheme a code sent as @example.com #123456 would match example.com and userA.example.com since they're "same site" with each other. We should give these sites a way to express that they only want to match with example.com and no subdomains with a minimal amount of extra syntax. I think a natural extension of what we have so far is to use two @ signs as the field sigil. So, an SMS that reads @@example.com #123456 would match only example.com.

@hober
Copy link
Collaborator

hober commented Mar 25, 2021

IIRC one of the big advantages of using the @ character as the sigil is that it breaks auto-linkification of the hostname on most/all major platforms. Is that the case for double-@ too?

@erynofwales
Copy link
Author

I did a quick test on iOS and @@ avoids linkifying, just like @ does. I think that's the case on Android too -- I tried testing on an Android device and it didn't linkify -- but I don't know for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants