简体   繁体   中英

WCF Service with netTcpBinding + windows Authentication hosted with IIS and using roles for authorization

I am having a WCF Service which is hosted with IIS with nettcpbinding and Windows authentication, I am trying to do authorization with user name/roles. But service is allowing any user to access it.

Is this possible in first place?

It sounds like you have some soft of configuration error. IIS does not allow for hosting of WCF with the nettcp binding. You'll need to host your WCF in a Windows Service or WAS (only in Windows Server 2008). See Learning WCF , by Michele Leroux Bustamante for an excellent reference on how to do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM