c# - Secure a Wcf json web service without Window authentication -


i'd secure web service. have avoid window authentication because hosting company cause me problems

how possible ? best option me if configure user / password (or password. enought web service) web.config file.

i imagine can add special parameter seems ugly

my configuration :

  <system.servicemodel>     <servicehostingenvironment aspnetcompatibilityenabled="false" multiplesitebindingsenabled="true"/>     <services>       <service name="ct.webservices.wsct">         <endpoint address="" behaviorconfiguration="ct.webservices.service1aspnetajaxbehavior" binding="webhttpbinding" contract="ct.webservices.wsct"/>       </service>     </services>     <behaviors>       <endpointbehaviors>         <behavior name="ct.webservices.service1aspnetajaxbehavior">           <webhttp faultexceptionenabled="true"/>         </behavior>       </endpointbehaviors>     </behaviors>     <bindings>       <webhttpbinding>         <binding>           <readerquotas maxstringcontentlength="1000000"/>         </binding>       </webhttpbinding>     </bindings>   </system.servicemodel> 

the web service used android device

the code :

namespace ct.webservices {     [servicecontract(namespace = "")]     [servicebehavior(includeexceptiondetailinfaults = true)]     public class wsct     {         [operationcontract]         [webget(responseformat = webmessageformat.json, uritemplate = "/modif")]         public ilist<ws.modification> getmodifs() { return null; }     } } 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -