c# - IIS Hosted WCF Rest Service keeeps prompting for Windows Auth Credentials -
i have wcf rest service i'm building. service hosted in iis under ssl. , have site in iis setup utilize windows authentication anonymous authentication disabled.
however, when effort navigate service.svc file in browser test windows authentication prompted credentials expected. however, after entering credentials continuous prompt me on , over. , don't know why or i'm missing.
if re-enable anonymous authentication , navigate service.svc file wsdl info loads..but understanding no longer using windows authentication @ point.
i have tested in ie , firefox , both of them same thing.
here web.config
<system.servicemodel> <bindings> <webhttpbinding> <binding name="webhttpbindingconfig"> <security mode="transportcredentialonly"> <transport clientcredentialtype="windows" proxycredentialtype="windows"/> </security> </binding> </webhttpbinding> </bindings> <behaviors> <servicebehaviors> <behavior name="httpenabled"> <servicemetadata httpgetenabled="true" httpsgetenabled="true" /> <servicecredentials> <windowsauthentication allowanonymouslogons="false" includewindowsgroups="true"/> </servicecredentials> </behavior> </servicebehaviors> <endpointbehaviors> <behavior name="endpbehavior"> <webhttp helpenabled="true"/> </behavior> </endpointbehaviors> </behaviors> <services> <service name="myservice" behaviorconfiguration="httpenabled"> <endpoint address="" binding="webhttpbinding" contract="mycontract" behaviorconfiguration="endpbehavior" bindingconfiguration="webhttpbindingconfig" /> </service> </services>
any help figuring out great. if need other info please allow me know. give thanks you.
problem: continuous prompt creds when attempting view service.svc in browser. expected result: upon entering valid creds service.svc page should load
edit: going post images of auth settings , illustration of dong give visual, don't have plenty reputation yet. sorry.
i figured out. ended beingness server configuration issue. discovered load service.svc file remote machine valid creds. after did searching found next article:
http://warnajith.blogspot.com/2011/06/iis-75-401-unauthorized-access-error.html
the issue needed disableloopbackcheck. after followed steps on page update registry loaded correctly
note: if you're on windows 2012 server not need step 1 in link provided.
hope helps else in future.
c# wcf rest iis windows-authentication
No comments:
Post a Comment