I am working on Java application(Play Framework) which is using Amazon SNS API to send an email to customers. I like to use AuthenticateOnUnsubscribe flag for security reason. I donno how to use this flag in java? When I used ConfirmSubscription API in Java, It is asking 'token' value(I donno about this value, It will send from Amazon SNS to customer through email; Not sure; If possible, Advice me)

Advice me on how to use AuthenticateOnUnsubscribe flag in Java??

有帮助吗?

解决方案

Try making the "ConfirmSubscription" request authenticated and set the flag. Instead of just clicking on the email, or going to the confirm URL, use the API call (http://docs.aws.amazon.com/sns/latest/APIReference/API_ConfirmSubscription.html). Sign it with your AWS key and set the AuthenticateOnUnsubscribe to true.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top