c# - Calling WCF service hosted in Forms Authentication site from a Windows Service -
we have windows service process continually processing messages microsoft messaging queue. when acting upon these messages, calling methods wcf service.
that wcf service hosted in asp.net web site not has wcf services end-user front end. generally, wcf methods modifying in-memory data structures, , front end reading them. data being modified , clients need notified of changes immediately. (we using signalr.)
everything working great long asp.net site using windows integrated authentication. required front end use forms authentication. this, of course, broke wcf binding. previous binding was:
<basichttpbinding> <binding name="basichttpbinding_isessionwebservice"> <security mode="transport"> <transport clientcredentialtype="windows" /> </security> </binding> </basichttpbinding>
front-end users not need able call services. (in fact, should not able to.)
ideally, i'd wcf service keep using windows authentication , rest of site use forms authentication, don't think iis supports this. i'd prefer not have store , pass password of account running windows service, if that's way, can live that. thinking there might binding uses client certificate, not sure how set up.
how can expose wcf endpoint in such way secure , can called windows service?
afaik iis 7 not allow this, workarounds seem sketchier creating 2 sites.
you create 2 services each on separate iis sites on server. data service use windows authentication
, hold data structures. front end service use forms authentication
, redirect request data service. use custom identity app pool front end service if want exclude other web sites using applicationpool identity.
Comments
Post a Comment