Protect Web Service by Setting UriTemplate property in ASP.Net

Last Reply 8 months ago By dharmendr

Posted 8 months ago


i have publish api using http url on my live server it works fine. the only problem is how can i secure it so it requires password or authentication before any one use it like this is the url to add data.

now i do not want any one can use it just call the uri, i want some protection on it so only those person to whom i give access or passcode or some thing can only use it. please advice

Posted 8 months ago

Hi nauna,

Just add another unique(access or passcode) parameter to the url. So that when url is requested you can check the parameter with email and proceed for further process.