Secure WCF REST API using C# in ASP.Net

nauna
 
on Mar 11, 2019 11:48 PM
2211 Views

i have this API

http://service.globeali.com/service1.svc/Country

it works fine, the problem is any one can access the URL and see the data which i do not want.

I want the it should be like URI access as facebook and google does, so only those to whom i have given acccess then can see it and that access should be dynamically check like if i have given access to abc.com url so it should check auto whethere the api call is coming from abc.com or not else it should deny it.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
nauna
 
on Mar 12, 2019 05:57 AM

thank you for the details

for e.g if i have given to domain name abc.com is there any way API can auto check whether the API call is coming from abc.com or not.

 

i do not want user add id and pass, it can be leaked out instead i want API should check whether the API call is coming abc.com or not

 

abc.com is one url i will match the request api URL in my database, but at the time of calling api methid api first send the URL to my database and check if that url exist or not if exist so call api else return error.

dharmendr
 
on Mar 12, 2019 07:18 AM