如何配置 Mailgun 以与 Sign in with Apple 和 Apple 的中继服务一起使用?

Posted

技术标签:

【中文标题】如何配置 Mailgun 以与 Sign in with Apple 和 Apple 的中继服务一起使用?【英文标题】:How to configure Mailgun to be used with Sign in with Apple and Apple's relay service? 【发布时间】:2020-05-23 06:21:27 【问题描述】:

我已按照 Apple 文档中的说明验证了我的域,但我仍然无法向 Apple 中继地址发送电子邮件。

我还将 Mailgun 日志 (postmaster@mail.mydomain.com) 中的发件人电子邮件 ID 添加到已验证的地址。

但没有运气。

SendGrid (https://sendgrid.com/docs/ui/account-and-settings/configuring-sign-in-with-apple/) 为您提供了一个要添加到 Apple Dashboard 的电子邮件地址,但我没有看到 MailGun 的类似解决方案。

如果有人遇到过类似情况,请分享您是如何克服这个问题的。

【问题讨论】:

【参考方案1】:

确保您的 mailgun 子域已经过验证。如果您的服务器位于example.com 并且您的mailgun 发送域是sender.example.com 您需要将您从https://developer.apple.com/account/resources/services/configure 下载的文件添加到您的主机https://sender.example.com/.well-known/apple-developer-domain-association.txt 验证成功后,您将看到一个绿色的勾号和mailgun 电子邮件应发送至*@privaterelay.appleid.com,以您的开发者帐户注册。

【讨论】:

以上是关于如何配置 Mailgun 以与 Sign in with Apple 和 Apple 的中继服务一起使用?的主要内容,如果未能解决你的问题,请参考以下文章

在 TypeScript 中为 Firebase Cloud Function 配置 mailgun

Sign in with Apple(苹果授权登陆)服务端验证

Flutter web google_sign_in:如何检索refreshToken

Sign In With Apple

如何从 Google Sign-In Javascript SDK 获取访问令牌?

如何在 Flutter 的 google_sign_in 中获取 JWT 格式的访问令牌?