Question

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??

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top