如何在没有端点令牌的情况下确认Amazon SNS的预订? [英] How to confirm the subscription of Amazon SNS without having the endpoint token?

查看:64
本文介绍了如何在没有端点令牌的情况下确认Amazon SNS的预订?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的JAVA应用程序中,我正在使用Amazon SNS向客户发送电子邮件;一旦我向我的SNS主题订阅了一个客户(电子邮件ID);它要求客户确认订阅以接收电子邮件;

是否有任何方法可以在我们的应用程序本身中确认订阅(没有客户的帮助)?

解决方案

否,这不可能.

确认步骤的全部要点是迫使最终用户确认订阅,以便SNS不能用作垃圾邮件发送机制.如果SNS允许应用程序开发人员在不访问端点令牌的情况下确认订阅,那么您可以确认任何人的电子邮件地址.

但是请注意,SNS可以从技术上实现一项功能,该功能将使电子邮件所有者可以确认您的帐户的订阅,因此,如果您的应用程序要订阅和取消订阅很多主题的电子邮件地址,则他们不必确认每个.遗憾的是,该功能目前不存在.

另一种实际上可以满足您需求的可能性是,如果SNS允许您从您的SES帐户发送电子邮件并使用您的SES信任级别.同样,此功能目前不存在.

在SNS团队提供允许该用例的功能之前,如果您需要传递给客户,则可以允许SNS为您扇出扇形到HTTP或SQS队列,然后使用SES传递来自那些通知的电子邮件./p>

In my JAVA application, I'm using Amazon SNS to send emails to customer; Once I subscribe one customer(email id) into my SNS Topic; It is asking the customer to confirm the subscription to receive the emails;

Is there any way to confirm the subscription in our application itself(without cusstomer's help)?

解决方案

No, it is not possible.

The entire point of the confirmation step is to force the end user to confirm the subscription so that SNS cannot be used as a spamming mechanism. If SNS allowed the application developer to confirm subscriptions without access to the endpoint token, then you could confirm anyone's email address.

Note however, that SNS could technically implement a feature which would allow the email owner to confirm subscriptions for your account, so that if your application will be subscribing and unsubscribing an email address from lots of topics, they wouldn't have to confirm each one. Sadly, that feature currently doesn't exist.

One other possibility which would actually give you what you need is if SNS allowed you to send emails from your SES account and use your SES trust level. Again, this feature doesn't exist currently.

Until the SNS team delivers a feature which allows this use case, if you need to deliver to customers, you could allow SNS to do the fanout for you to HTTP or SQS queues, then deliver emails from those notification using SES.

这篇关于如何在没有端点令牌的情况下确认Amazon SNS的预订?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆