-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve email template in postmark to include location information from CF headers, agent information and validation phrase #347
Comments
The work in #399 should resolve the second half of your checklist:
Although the "printed in the agent" part is mostly on the |
…text As part of storacha/w3up#347 I'm looking into making location information from CloudFlare HTTP headers available to the invocation handler that generates emails (https://github.com/web3-storage/w3protocol/blob/main/packages/access-api/src/service/voucher-claim.js#L45) so that we can tell users where in the world a space registration request was initiated. This is a common pattern in web services and is intended to help the user make better choices about which verification requests to approve. To do this, we need some way of making HTTP headers available to invocation handlers. I'd like to do this without tying the InvocationContext too tightly to HTTP, and the simplest thing I can think of is adding a bag of string-keyed key/value pairs named `metadata` to InvocationContext. Very open to other approaches here - this is intended to be the starting point for a conversation. One note worth bringing up for clarity - this opens the door to invocation handlers doing all sorts of things with information from the HTTP headers, some of which could conceivably be a violation of a user's privacy. It may be worth implementing some sort of allow-list mechanism rather than just passing all HTTP headers through as I'm doing in this PR. I'm not entirely sure where this configuration would live, so am looking for thoughts and feedback.
New PR is here: #432 |
I'm creating a new issue to reflect our needs better. |
More context for this issue here https://purrfect-tracker-45c.notion.site/Email-auth-flow-d33f0715024a47c18a8114ba284e9c07
Example:
Email should include:
The text was updated successfully, but these errors were encountered: