I have setup a .NET WCF web service that will expose some methods to create/update email alerts for different contactsIds. The webservice is going to live behind the firewall.
My fear is that if we expose a call like:
bool SetAlertTemplate(int alertId, int templateId);
One of the client websites could modify unintentionally an alert that does not belong to the contactId that is using the website.
Even if i use:
bool SetAlertTemplate(int alertId, int contactId, int templateId);
It could create a problem in the future if we expose the webservice to the public. Where anyone could modify any alert.
What is the best way to expose a webservice and be sure that the client has permissions to modify the alert of a contactId, and hopully not sending these parameters with every call.