I have an IIS-hosted WCF-service-application running on IIS-10. The WCF is already running on https. My problem is that the service is currently accessible to everybody over the link that I have configured on IIS. The WCF is meant to transfer data between my Xamarin.Forms-App and a SQL-Database. I want to know how I can make my service secure over authentication(username, password?) or something like that, and how I can authenticate in Xamarin.Forms to "open" the connection.
I haven't found anything matching my case on Google, so maybe you can help me solve my problem.
You may use Multiple Authentication Schemes with WCF for Authentication. For IIS-hosted services, authentication can be set accordingly based on what is selected in IIS.
The element
ServiceAuthenticationBehavioror<serviceAuthenticationManager>is used for authentication service. This article has a more detailed explanation.And use element
<serviceAuthenticationManager>in config file:You could read the article about
Authentication of Xamarin.Formsfor more help.