Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I was created one WCF service. That is working fine. And my friend created one Android app. That app is consuming my WCF service by using corresponding my WCF service URLs and getting JSON data from my service that is fine. Here my issue is, my WCF service returning sensitive data to that Android app. So, i want to provide security to my WCF service. How can i achieve this? Please any body help me in this issue.
Posted
Comments
j snooze 5-Jun-14 17:00pm    
Add security to the service so you have to login. If its a RESTful service with your own authentication database, its a bit trickier, but otherwise you can add basic authentication or use your own. If you use your own, throw a class on the service for authentication and inherit from UserNamePasswordValidator then override the Validate method with your own code to check against your database.
You also need to use HTTPS and put a trusted certificate on the web server.
Ganeshh2 6-Jun-14 2:31am    
Thank u j snooze fro ur response,
i am using http only. How can i implement that Validate method. please post any sample code pls.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900